Function rcutils_log

Function Documentation

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

Log a message.

The attributes of this function are also being 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