:orphan: # PetscLogSet Sets the logging functions called at the beginning and ending of every event. ## Synopsis ``` #include "petscsys.h" PetscErrorCode PetscLogSet(PetscErrorCode (*b)(PetscLogEvent, int, PetscObject, PetscObject, PetscObject, PetscObject), PetscErrorCode (*e)(PetscLogEvent, int, PetscObject, PetscObject, PetscObject, PetscObject)) ``` Not Collective ## Input Parameters - ***b -*** The function called at beginning of event - ***e -*** The function called at end of event ## Developer Note The default loggers are `PetscLogEventBeginDefault()` and `PetscLogEventEndDefault()`. ## See Also [](ch_profiling), `PetscLogDump()`, `PetscLogDefaultBegin()`, `PetscLogAllBegin()`, `PetscLogTraceBegin()`, `PetscLogEventBeginDefault()`, `PetscLogEventEndDefault()` ## Level developer ## Location src/sys/logging/plog.c --- [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](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)