PetscLogHandlerObjectCreate — PETSc 3.21.4 documentation

Skip to main content
`Ctrl`+`K`

# PetscLogHandlerObjectCreate

Record the creation of an object in a log handler.

## Synopsis

    #include "petscsys.h"
    PetscErrorCode PetscLogHandlerObjectCreate(PetscLogHandler h, PetscObject obj)

Not collective

## Input Parameters

- h - the `PetscLogHandler`

- obj - a newly created `PetscObject`

## Notes

Most users will use `PetscLogObjectCreate()`, which will call this function for all handlers registered with `PetscLogHandlerStart()`.

## See Also

Profiling, `PetscLogHandler`, `PetscLogObjectCreate()`, `PetscLogObjectDestroy()`, `PetscLogHandlerObjectDestroy()`

## Level

developer

## Location

src/sys/logging/handler/interface/loghandler.c

## Implementations

PetscLogHandlerObjectCreate_Default() in src/sys/logging/handler/impls/default/logdefault.c
PetscLogHandlerObjectCreate_Legacy() in src/sys/logging/handler/impls/legacy/loglegacy.c
PetscLogHandlerObjectCreate_Nested() in src/sys/logging/handler/impls/nested/lognested.c

Index of all Profiling routines
Table of Contents for all manual pages
Index of all manual pages