:orphan:
# 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
[](ch_profiling), `PetscLogEventRegister()`
## Level
developer
## Location
src/sys/logging/plog.c
## Examples
src/snes/tutorials/ex48.c
src/ts/tutorials/ex14.c
---
[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)