# PetscLogEventExcludeClass
Deactivates event logging for a PETSc object class in every stage. 
## Synopsis
```
#include "petscsys.h"   
PetscErrorCode PetscLogEventExcludeClass(PetscClassId classid)
```
Not Collective


## Input Parameter

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





## Note
If a class is excluded then events associated with that class are not logged.


## See Also
 `PetscLogEventDeactivateClass()`, `PetscLogEventActivateClass()`, `PetscLogEventDeactivate()`, `PetscLogEventActivate()`

## Level
developer

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