Function rcl_arguments_get_log_levels

Function Documentation

rcl_ret_t rcl_arguments_get_log_levels(const rcl_arguments_t *arguments, rcl_log_levels_t *log_levels)

Return log levels parsed from the command line.

Log levels are parsed directly from command line arguments.

Attribute

Adherence

Allocates Memory

Yes

Thread-Safe

No

Uses Atomics

No

Lock-Free

Yes

Parameters:
  • arguments[in] An arguments structure that has been parsed.

  • log_levels[out] Log levels as parsed from command line arguments. The output must be finished by the caller if the function successes.

Returns:

RCL_RET_OK if everything goes correctly, or

Returns:

RCL_RET_INVALID_ARGUMENT if any function arguments are invalid, or

Returns:

RCL_RET_BAD_ALLOC if allocating memory failed.