gobj_get_log_priority_name()

gobj_get_log_priority_name()#

Retrieves the string representation of a log priority level based on its integer value.

Prototype

const char *gobj_get_log_priority_name(int priority);

Parameters

Key

Type

Description

priority

int

The log priority level, expected to be within predefined system log levels.


Return Value

A string representing the name of the log priority level. If the priority is out of range, an empty string is returned.

Notes

The function maps integer priority levels to predefined log level names such as LOG_ERR, LOG_WARNING, and LOG_DEBUG.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples