Function rcutils_logging_set_logger_level

Function Documentation

rcutils_ret_t rcutils_logging_set_logger_level(const char *name, int level)

Set the severity level for a logger.

If an empty string is specified as the name, the default logger level will be set.

Attribute

Adherence

Allocates Memory

Yes

Thread-Safe

No

Uses Atomics

No

Lock-Free

Yes

Parameters:
  • name[in] The name of the logger, must be null terminated c string.

  • level[in] The level to be used.

Returns:

RCUTILS_RET_OK if successful, or

Returns:

RCUTILS_RET_INVALID_ARGUMENT on invalid arguments, or

Returns:

RCUTILS_RET_LOGGING_SEVERITY_MAP_INVALID if severity map invalid, or

Returns:

RCUTILS_RET_ERROR if an unspecified error occured