Function rcutils_logging_get_logger_level

Function Documentation

int rcutils_logging_get_logger_level(const char *name)

Get the severity level for a logger.

This considers the severity level of the specifed logger only. To get the effective level of a logger given the severity level of its ancestors, see rcutils_logging_get_logger_effective_level().

Attribute

Adherence

Allocates Memory

No, provided logging system is already initialized

Thread-Safe

No

Uses Atomics

No

Lock-Free

Yes

Parameters:

name[in] The name of the logger, must be null terminated c string

Returns:

The level of the logger if it has been set, or

Returns:

RCUTILS_LOG_SEVERITY_UNSET if unset, or

Returns:

g_rcutils_logging_default_logger_level for an empty name, or

Returns:

-1 on invalid arguments, or

Returns:

-1 if an error occurred