Function rcutils_logging_logger_is_enabled_for

Function Documentation

bool rcutils_logging_logger_is_enabled_for(const char *name, int severity)

Determine if a logger is enabled for a severity 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 or NULL.

  • severity[in] The severity level.

Returns:

true if the logger is enabled for the level, or

Returns:

false otherwise.