# PetscClassIdRegister
Registers a new class name for objects and logging operations in an application code. 
## Synopsis
```
#include "petscsys.h"   
PetscErrorCode PetscClassIdRegister(const char name[], PetscClassId *oclass)
```
Not Collective


## Input Parameter

- ***name   -*** The class name



## Output Parameter

- ***oclass -*** The class id or classid





## See Also
 `PetscLogEventRegister()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/logging/plog.c.html#PetscClassIdRegister">src/sys/logging/plog.c</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/snes/tutorials/ex48.c.html">src/snes/tutorials/ex48.c.html</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/tutorials/ex14.c.html">src/ts/tutorials/ex14.c.html</A><BR>


---
[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)  
