15 #ifndef RCUTILS__LOGGING_H_ 16 #define RCUTILS__LOGGING_H_ 180 rcl_log_location_t * location,
211 rcl_log_location_t * location,
212 int severity,
const char * name,
const char * format, va_list * args);
218 #endif // RCUTILS__LOGGING_H_ const char * function_name
The name of the function containing the log call.
Definition: logging.h:52
The info log level.
Definition: logging.h:63
The warn log level.
Definition: logging.h:64
const char * file_name
The name of the source file containing the log call.
Definition: logging.h:54
void rcl_logging_set_output_handler(rcl_logging_output_handler_t function)
Set the current output handler.
void rcl_logging_console_output_handler(rcl_log_location_t *location, int severity, const char *name, const char *format, va_list *args)
The default output handler outputs log messages to the standard streams.
int g_rcl_logging_severity_threshold
The global severity threshold before calling the output handler.
void rcl_log(rcl_log_location_t *location, int severity, const char *name, const char *format,...)
Log a message.
struct rcl_log_location_t rcl_log_location_t
The structure identifying the caller location in the source code.
rcl_logging_output_handler_t g_rcl_logging_output_handler
The function pointer of the current output handler.
void rcl_logging_set_severity_threshold(int severity)
Set the global severity threshold.
void(* rcl_logging_output_handler_t)(rcl_log_location_t *, int, const char *, const char *, va_list *)
The function signature to log messages.
Definition: logging.h:77
size_t line_number
The line number containing the log call.
Definition: logging.h:56
RCUTILS_LOG_SEVERITY
The severity levels of log message.
Definition: logging.h:60
bool g_rcl_logging_initialized
The flag if the logging system has been initialized.
#define RCUTILS_PUBLIC
Definition: visibility_control.h:48
The fatal log level.
Definition: logging.h:66
rcl_logging_output_handler_t rcl_logging_get_output_handler()
Get the current output handler.
The structure identifying the caller location in the source code.
Definition: logging.h:49
The debug log level.
Definition: logging.h:62
int rcl_logging_get_severity_threshold()
Get the global severity threshold.
The error log level.
Definition: logging.h:65
void rcl_logging_initialize()
Initialize the logging system.