# PetscInfoSetFromOptions
Configure `PetscInfo()` using command line options, enabling or disabling various calls to `PetscInfo()` 
## Synopsis
```
#include "petscsys.h"   
PetscErrorCode PetscInfoSetFromOptions(PetscOptions options)
```
Not Collective


## Input Parameter

- ***options -*** Options database, use NULL for default global database



## Options Database Keys

- ***-info [filename][:[~]<list,of,classnames>[:[~]self]] -*** specify which informative messages are printed, See PetscInfo().



## Note
This function is called automatically during `PetscInitialize()` so users usually do not need to call it themselves.




## See Also
 `PetscInfo()`, `PetscInfoAllow()`, `PetscInfoSetFile()`, `PetscInfoSetClasses()`, `PetscInfoSetFilterCommSelf()`, `PetscInfoDestroy()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/info/verboseinfo.c.html#PetscInfoSetFromOptions">src/sys/info/verboseinfo.c</A>


---
[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](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
