:orphan: # PetscLogEventDeactivatePush Indicates that a particular event should not be logged until `PetscLogEventDeactivatePop()` is called ## Synopsis ``` #include "petscsys.h" PetscErrorCode PetscLogEventDeactivatePush(PetscLogEvent event) ``` Not Collective ## Input Parameter - ***event -*** The event id ## Usage ```none PetscLogEventDeactivatePush(VEC_SetValues); [code where you do not want to log VecSetValues()] PetscLogEventDeactivatePop(VEC_SetValues); [code where you do want to log VecSetValues()] ``` ## Note The event may be either a pre-defined PETSc event (found in include/petsclog.h) or an event number obtained with `PetscLogEventRegister()`). ## See Also [](ch_profiling), `PetscLogEventActivate()`, `PetscLogEventDeactivatePop()`, `PetscLogEventDeactivate()` ## Level advanced ## 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)