# PetscLogObjects
Determines whether objects are logged for the graphical viewer. 
## Synopsis
```
#include "petscsys.h"   
PetscErrorCode PetscLogObjects(PetscBool flag)
```
Not Collective


## Input Parameter

- ***flag -*** `PETSC_TRUE` if objects are to be logged



## Options Database Key

- ***-log_exclude_objects -*** Turns off objects logging





## Note
Logging of objects continues to consume more memory as the program
runs. Long running programs should consider turning this feature off.


## See Also
 [](ch_profiling), `PetscLogStagePush()`, `PetscLogStagePop()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/logging/plog.c.html#PetscLogObjects">src/sys/logging/plog.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/logging/plog.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)  
