Function rcutils_logging_get_logger_leveln
Defined in File logging.h
Function Documentation
-
int rcutils_logging_get_logger_leveln(const char *name, size_t name_length)
Get the level for a logger and its name length.
Identical to rcutils_logging_get_logger_level() but without relying on the logger name to be a null terminated c string.
Attribute
Adherence
Allocates Memory
No, provided logging system is already initialized
Thread-Safe
No
Uses Atomics
No
Lock-Free
Yes
- Parameters:
name – [in] The name of the logger
name_length – [in] Logger name length
- Returns:
The level of the logger if it has been set, or
- Returns:
RCUTILS_LOG_SEVERITY_UNSET
if unset, or- Returns:
the default logger level for an empty name, or
- Returns:
-1 on invalid arguments, or
- Returns:
-1 if an error occurred