6#ifndef ZEPHYR_LOG_BACKEND_STD_H_
7#define ZEPHYR_LOG_BACKEND_STD_H_
28 if (
IS_ENABLED(CONFIG_LOG_BACKEND_SHOW_COLOR)) {
32 if (
IS_ENABLED(CONFIG_LOG_BACKEND_FORMAT_TIMESTAMP)) {
91 uint32_t timestamp,
const char *fmt, va_list ap)
96 if (
IS_ENABLED(CONFIG_LOG_BACKEND_SHOW_COLOR)) {
100 if (
IS_ENABLED(CONFIG_LOG_BACKEND_FORMAT_TIMESTAMP)) {
105 IS_ENABLED(CONFIG_LOG_IMMEDIATE_CLEAN_OUTPUT)) {
115 IS_ENABLED(CONFIG_LOG_IMMEDIATE_CLEAN_OUTPUT)) {
133 uint32_t timestamp,
const char *metadata,
139 if (
IS_ENABLED(CONFIG_LOG_BACKEND_SHOW_COLOR)) {
143 if (
IS_ENABLED(CONFIG_LOG_BACKEND_FORMAT_TIMESTAMP)) {
148 IS_ENABLED(CONFIG_LOG_IMMEDIATE_CLEAN_OUTPUT)) {
159 IS_ENABLED(CONFIG_LOG_IMMEDIATE_CLEAN_OUTPUT)) {
#define irq_lock()
Lock interrupts.
Definition: irq.h:225
#define irq_unlock(key)
Unlock interrupts.
Definition: irq.h:255
static void log_backend_std_sync_hexdump(const struct log_output *const output, uint32_t flags, struct log_msg_ids src_level, uint32_t timestamp, const char *metadata, const uint8_t *data, uint32_t length)
Synchronously process hexdump message by a standard logger backend.
Definition: log_backend_std.h:131
static void log_backend_std_sync_string(const struct log_output *const output, uint32_t flags, struct log_msg_ids src_level, uint32_t timestamp, const char *fmt, va_list ap)
Synchronously process log message by a standard logger backend.
Definition: log_backend_std.h:89
static uint32_t log_backend_std_get_flags(void)
Definition: log_backend_std.h:24
static void log_backend_std_put(const struct log_output *const output, uint32_t flags, struct log_msg *msg)
Put log message to a standard logger backend.
Definition: log_backend_std.h:46
static void log_backend_std_dropped(const struct log_output *const output, uint32_t cnt)
Report dropped messages to a standard logger backend.
Definition: log_backend_std.h:74
static void log_backend_std_panic(const struct log_output *const output)
Put a standard logger backend into panic mode.
Definition: log_backend_std.h:63
void log_msg_put(struct log_msg *msg)
Function for indicating that message is no longer in use.
void log_msg_get(struct log_msg *msg)
Function for indicating that message is in use.
void log_output_dropped_process(const struct log_output *output, uint32_t cnt)
Process dropped messages indication.
void log_output_flush(const struct log_output *output)
Flush output buffer.
#define LOG_OUTPUT_FLAG_LEVEL
Flag forcing severity level prefix.
Definition: log_output.h:37
void log_output_hexdump(const struct log_output *output, struct log_msg_ids src_level, uint32_t timestamp, const char *metadata, const uint8_t *data, uint32_t length, uint32_t flags)
Process log hexdump.
void log_output_msg_process(const struct log_output *output, struct log_msg *msg, uint32_t flags)
Process log messages to readable strings.
void log_output_string(const struct log_output *output, struct log_msg_ids src_level, uint32_t timestamp, const char *fmt, va_list ap, uint32_t flags)
Process log string.
#define LOG_OUTPUT_FLAG_FORMAT_TIMESTAMP
Flag forcing timestamp formatting.
Definition: log_output.h:34
#define LOG_OUTPUT_FLAG_TIMESTAMP
Flag forcing timestamp.
Definition: log_output.h:31
#define LOG_OUTPUT_FLAG_COLORS
Flag forcing ANSI escape code colors, red (errors), yellow (warnings).
Definition: log_output.h:28
#define IS_ENABLED(config_macro)
Check for macro definition in compiler-visible expressions.
Definition: util_macro.h:101
flags
Definition: http_parser.h:131
static k_spinlock_key_t key
Definition: spinlock_error_case.c:14
__UINT32_TYPE__ uint32_t
Definition: stdint.h:60
__UINT8_TYPE__ uint8_t
Definition: stdint.h:58
Part of log message header identifying source and level.
Definition: log_msg.h:85
Log message structure.
Definition: log_msg.h:139
Log_output instance structure.
Definition: log_output.h:76
static fdata_t data[2]
Definition: test_fifo_contexts.c:15