33typedef enum rte_log_level_e
122#define RTE_LOG_EVENT_LINE_MAX_LEN 256U
204 const char *destination,
207 const char *extra_fields);
231typedef struct rte_log_fields_s
267 uint32_t value, uint8_t min_digits);
295 const char *destination,
void rte_log_set_level(rte_log_level_t min_level)
Sets the minimum severity that rte_log_write() and rte_log_write_event() forward to the OSAdapter - a...
rte_status_t rte_log_level_from_string(const char *name, rte_log_level_t *out_level)
Parses one of the canonical level spellings ("DEBUG", "INFO", "WARNING", "ERROR" - exactly as rte_log...
void rte_log_write_event(rte_log_level_t level, const char *site, uint32_t cycle, const char *source, const char *destination, const char *type, const char *info, const char *extra_fields)
Emits one structured inter-channel event/message-trail log line - for a message actually sent/receive...
rte_log_level_t rte_log_get_level(void)
Returns the current minimum severity (see rte_log_set_level()). REQ-OAL-LOG-015.
rte_log_fields_t * rte_log_fields_add_str(rte_log_fields_t *fields, const char *key, const char *value)
Appends one key=value pair (preceded by a single separating space only when the builder is already no...
const char * rte_log_level_to_string(rte_log_level_t level)
Renders a rte_log_level_t as a fixed, human-readable tag - "DEBUG"/"INFO"/"WARNING"/"ERROR" - used as...
const char * rte_log_fields_c_str(rte_log_fields_t *fields)
NUL-terminated view of the accumulated pairs.
rte_log_level_t
Log message severity, passed to rte_log_write().
#define RTE_LOG_EVENT_LINE_MAX_LEN
Max length, in bytes and not counting the NUL terminator, of one rte_log_write_event() line - fields ...
void rte_log_fields_reset(rte_log_fields_t *fields)
(Re)initialises a builder to empty. MUST be called before the first rte_log_fields_add_*(); safe to c...
rte_status_t rte_log_init(void)
Initializes the logging OSAdapter. Safe to call once at startup.
void rte_log_write(rte_log_level_t level, const char *tag, const char *message)
Emits one log message. Non-blocking; never fails the caller's control flow even if the message is dro...
void rte_log_write_event_fields(rte_log_level_t level, const char *site, uint32_t cycle, const char *source, const char *destination, const char *type, const char *info, rte_log_fields_t *fields)
rte_log_write_event() with a builder passed directly as the extra fields - no rte_log_fields_c_str() ...
rte_status_t
Common result/status codes.
Common status/error codes returned by every Safe API Framework function. Shared across all OS Abstrac...
Bounded, checked string manipulation (ADR-006). Replaces strcpy/strcat/sprintf/atoi/strtok-style unbo...
Common fixed-width types and the caller-owned-storage handle pattern used by every OAL service (see A...
Bounded builder for rte_log_write_event()'s extra_fields (or info) argument: accumulates space-separa...
char storage[RTE_LOG_EVENT_LINE_MAX_LEN]
Bounded string: buf.length is the string length, not counting a NUL.