Function rcl_logging_external_set_logger_level

Function Documentation

rcl_logging_ret_t rcl_logging_external_set_logger_level(const char *name, int level)

Set the severity level for a logger.

This function sets the severity level for the specified logger. If the name provided is an empty string or NULL it will change the level of the root logger.

Parameters:
  • name[in] The name of the logger. Must be a null terminated C string or NULL.

  • level[in] The severity level to be used for the specified logger.

Returns:

RCL_LOGGING_RET_OK if set successfully, or

Returns:

RCL_LOGGING_RET_ERROR if an unspecified error occurs.