Function rcutils_log_internal

Function Documentation

void rcutils_log_internal(const rcutils_log_location_t *location, int severity, const char *name, const char *format, ...)

Internal call to log a message.

Unconditionally log a message. This is an internal function, and assumes that the caller has already called rcutils_logging_logger_is_enabled_for(). End-user software should never call this, and instead should call rcutils_log() or one of the RCUTILS_LOG_ macros.

The attributes of this function are influenced by the currently set output handler.

Attribute

Adherence

Allocates Memory

No, for formatted outputs <= 1023 characters

| Yes, for formatted outputs >= 1024 characters Thread-Safe | No 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 or NULL

  • format[in] The format string

  • ...[in] The variable arguments