:orphan:
# PetscLogEventActivateClass
Activates event logging for a PETSc object class for the current stage 
## Synopsis
```
#include "petscsys.h"   
PetscErrorCode PetscLogEventActivateClass(PetscClassId classid)
```
Not Collective


## Input Parameter

- ***classid -*** The event class, for example `MAT_CLASSID`, `SNES_CLASSID`, etc.





## See Also
 [](ch_profiling), `PetscLogEventIncludeClass()`, `PetscLogEventExcludeClass()`, `PetscLogEventDeactivateClass()`, `PetscLogEventActivate()`, `PetscLogEventDeactivate()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/logging/plog.c.html#PetscLogEventActivateClass">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](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
