:orphan: # PetscInfoSetFile Sets the printing destination for all `PetscInfo()` calls ## Synopsis ``` #include "petscsys.h" PetscErrorCode PetscInfoSetFile(const char filename[], const char mode[]) ``` Not Collective ## Input Parameters - ***filename -*** Name of the file where `PetscInfo()` will print to - ***mode -*** Write mode passed to `PetscFOpen()` ## Note Use `filename = NULL` to set `PetscInfo()` to write to `PETSC_STDOUT`. ## See Also [](sec_PetscInfo), `PetscInfo()`, `PetscInfoGetFile()`, `PetscInfoSetFromOptions()`, `PetscFOpen()` ## Level advanced ## Location src/sys/info/verboseinfo.c ## Examples src/mat/tutorials/ex7.c
--- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/info/verboseinfo.c) [Index of all Profiling routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)