# PetscEventPerfLogActivateClass
Activates event logging for a PETSc object class. 
## Synopsis
```
#include "petscsys.h"   
PetscErrorCode PetscEventPerfLogActivateClass(PetscEventPerfLog eventLog, PetscEventRegLog eventRegLog, PetscClassId classid)
```
Not Collective


## Input Parameters

- ***eventLog    -*** The `PetscEventPerfLog`
- ***eventRegLog -*** The `PetscEventRegLog`
- ***classid      -*** The class id, for example `MAT_CLASSID`, `SNES_CLASSID`





## Note
This is a low level routine used by the logging functions in PETSc


## See Also
 `PetscEventPerfLogDeactivateClass()`, `PetscEventPerfLogActivate()`, `PetscEventPerfLogDeactivate()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/logging/utils/eventlog.c.html#PetscEventPerfLogActivateClass">src/sys/logging/utils/eventlog.c</A>


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