# PetscClassRegLogGetClass
This function returns the class corresponding to a given classid. 
## Synopsis
```
#include "petscsys.h"   
PetscErrorCode PetscClassRegLogGetClass(PetscClassRegLog classLog, PetscClassId classid, int *oclass)
```
Not Collective


## Input Parameters

- ***classLog -*** The `PetscClassRegLog`
- ***classid  -*** The cookie



## Output Parameter

- ***oclass   -*** The class id





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


## See Also
 `PetscClassIdRegister()`, `PetscLogObjCreateDefault()`, `PetscLogObjDestroyDefault()`

## Level
developer

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


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