Function rcutils_logging_initialize

Function Documentation

rcutils_ret_t rcutils_logging_initialize(void)

Initialize the logging system.

Call rcutils_logging_initialize_with_allocator() using the default allocator. This function is called automatically when using the logging macros.

Attribute

Adherence

Allocates Memory

Yes

Thread-Safe

No

Uses Atomics

No

Lock-Free

Yes

Returns:

RCUTILS_RET_OK if successful, or

Returns:

RCUTILS_RET_INVALID_ARGUMENT if an error occurs reading the output format from the RCUTILS_CONSOLE_OUTPUT_FORMAT environment variable, in which case the default format will be used, or

Returns:

RCUTILS_RET_LOGGING_SEVERITY_MAP_INVALID if the internal logger severity level map cannot be initialized, in which case logger levels will not be configurable.