Function rcl_logging_multiple_output_handler

Function Documentation

void rcl_logging_multiple_output_handler(const rcutils_log_location_t *location, int severity, const char *name, rcutils_time_point_value_t timestamp, const char *format, va_list *args)

Default output handler used by rcl.

This function can be wrapped in a language specific client library, adding the necessary mutual exclusion protection there, and then use rcl_logging_configure_with_output_handler() instead of rcl_logging_configure().

Attribute

Adherence

Allocates Memory

No

Thread-Safe

Yes

Uses Atomics

No

Lock-Free

Yes

Parameters:
  • location[in] The pointer to the location struct or NULL

  • severity[in] The severity level

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

  • timestamp[in] The timestamp for when the log message was made

  • format[in] The list of arguments to insert into the formatted log message

  • args[in] argument for the string format