rcl
master
C API providing common ROS client library functionality.
|
Go to the documentation of this file.
17 #ifndef RCL__LOG_LEVEL_H_
18 #define RCL__LOG_LEVEL_H_
21 #include "rcl/macros.h"
23 #include "rcl/visibility_control.h"
193 #endif // RCL__LOG_LEVEL_H_
struct rcl_log_levels_t rcl_log_levels_t
Hold default logger level and other logger setting.
rmw_ret_t rcl_ret_t
The type that holds an rcl return code.
Definition: types.h:23
rcl_ret_t rcl_log_levels_init(rcl_log_levels_t *log_levels, const rcl_allocator_t *allocator, size_t logger_count)
Initialize a log levels structure.
A logger item to specify a name and a log level.
Definition: log_level.h:34
struct rcl_logger_setting_t * logger_settings
Array of logger setting.
Definition: log_level.h:48
const char * name
Name for the logger.
Definition: log_level.h:37
rcl_ret_t rcl_log_levels_shrink_to_size(rcl_log_levels_t *log_levels)
Shrink log levels structure.
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.
enum RCUTILS_LOG_SEVERITY rcl_log_severity_t
typedef for RCUTILS_LOG_SEVERITY;
Definition: log_level.h:31
rcl_ret_t rcl_log_levels_copy(const rcl_log_levels_t *src, rcl_log_levels_t *dst)
Copy one log levels structure into another.
rcl_log_levels_t rcl_get_zero_initialized_log_levels()
Return a rcl_log_levels_t struct with members initialized to zero value.
rcl_log_severity_t level
Minimum log level severity of the logger.
Definition: log_level.h:39
rcl_log_severity_t default_logger_level
Minimum default logger level severity.
Definition: log_level.h:46
Hold default logger level and other logger setting.
Definition: log_level.h:43
rcl_allocator_t allocator
Allocator used to allocate objects in this struct.
Definition: log_level.h:54
rcl_ret_t rcl_log_levels_fini(rcl_log_levels_t *log_levels)
Reclaim resources held inside rcl_log_levels_t structure.
size_t capacity_logger_settings
Capacity of logger settings.
Definition: log_level.h:52
size_t num_logger_settings
Number of logger settings.
Definition: log_level.h:50
struct rcl_logger_setting_t rcl_logger_setting_t
A logger item to specify a name and a log level.