Function rcl_log_levels_add_logger_setting

Function Documentation

rcl_ret_t rcl_log_levels_add_logger_setting(rcl_log_levels_t *log_levels, const char *logger_name, rcl_log_severity_t log_level)

Add logger setting with a name and a level.

Attribute

Adherence

Allocates Memory

Yes

Thread-Safe

No

Uses Atomics

No

Lock-Free

Yes

Parameters:
  • log_levels[in] The structure where to set the logger log level.

  • logger_name[in] Name for the logger, a copy of it will be stored in the structure.

  • log_level[in] Minimum log level severity to be set for logger_name.

Returns:

RCL_RET_OK if add logger setting successfully, or

Returns:

RCL_RET_BAD_ALLOC if allocating memory failed, or

Returns:

RCL_RET_INVALID_ARGUMENT if log_levels is NULL, or

Returns:

RCL_RET_INVALID_ARGUMENT if log_levels was not initialized, or

Returns:

RCL_RET_INVALID_ARGUMENT if log_levels allocator is invalid, or

Returns:

RCL_RET_INVALID_ARGUMENT if logger_name is NULL, or

Returns:

RCL_RET_ERROR if the log_levels structure is already full.