# PetscLogAllBegin
Turns on extensive logging of objects and events. Logs all events. This creates large log files and slows the program down. 
## Synopsis
```
#include "petscsys.h"   
PetscErrorCode PetscLogAllBegin(void)
```
Logically Collective on `PETSC_COMM_WORLD`


## Options Database Key

- ***-log_all -*** Prints extensive log information



## Usage
```none
     PetscInitialize(...);
     PetscLogAllBegin();
     ... code ...
     PetscLogDump(filename);
     PetscFinalize();
```





## Note
A related routine is `PetscLogDefaultBegin()` (with the options key -log_view), which is
intended for production runs since it logs only flop rates and object
creation (and shouldn't significantly slow the programs).


## See Also
 [](ch_profiling), `PetscLogDump()`, `PetscLogDefaultBegin()`, `PetscLogTraceBegin()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/logging/plog.c.html#PetscLogAllBegin">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)  
