# ClassRegLogRegister

Registers a class for logging operations in an application code. A prefered cookie is given on input, and the actual cookie is returned on output. If the user has no preference, PETSC_DECIDE will cause the cookie to be automatically assigned, and unique in this ClassLog.

### Synopsis

    #include "petsc.h"
    int ClassRegLogRegister(ClassRegLog classLog, const char cname[], int *cookie)

Not Collective

### Input Parameters

| classLog | - The ClassLog
| cname | - The name associated with the class
| cookie | - The prefered cookie (or PETSC_DECIDE), and the actual cookie on output

### Keywords

log, class, register

### See Also

PetscLogClassRegister()

Level:developer
Location: src/sys/src/plog/classLog.c
Index of all Profiling routines
Table of Contents for all manual pages
Index of all manual pages