:orphan: # PetscEventRegLogGetEvent This function returns the event id given the event name. ## Synopsis ``` #include "petscsys.h" PetscErrorCode PetscEventRegLogGetEvent(PetscEventRegLog eventLog, const char name[], PetscLogEvent *event) ``` Not Collective ## Input Parameters - ***eventLog -*** The `PetscEventRegLog` - ***name -*** The stage name ## Output Parameter - ***event -*** The event id, or -1 if not found ## Note This is a low level routine used by the logging functions in PETSc ## See Also `PetscEventRegLogRegister()` ## Level developer ## Location src/sys/logging/utils/eventlog.c --- [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](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)