Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
Log output formatting flags.

Macros

#define LOG_OUTPUT_FLAG_COLORS   BIT(0)
 Flag forcing ANSI escape code colors, red (errors), yellow (warnings).
 
#define LOG_OUTPUT_FLAG_TIMESTAMP   BIT(1)
 Flag forcing timestamp.
 
#define LOG_OUTPUT_FLAG_FORMAT_TIMESTAMP   BIT(2)
 Flag forcing timestamp formatting.
 
#define LOG_OUTPUT_FLAG_LEVEL   BIT(3)
 Flag forcing severity level prefix.
 
#define LOG_OUTPUT_FLAG_CRLF_NONE   BIT(4)
 Flag preventing the logger from adding CR and LF characters.
 
#define LOG_OUTPUT_FLAG_CRLF_LFONLY   BIT(5)
 Flag forcing a single LF character for line breaks.
 
#define LOG_OUTPUT_FLAG_FORMAT_SYSLOG   BIT(6)
 Flag forcing syslog format specified in RFC 5424.
 
#define LOG_OUTPUT_FLAG_THREAD   BIT(7)
 Flag thread id or name prefix.
 
#define LOG_OUTPUT_FLAG_SKIP_SOURCE   BIT(8)
 Flag forcing to skip logging the source.
 

Detailed Description

Macro Definition Documentation

◆ LOG_OUTPUT_FLAG_COLORS

#define LOG_OUTPUT_FLAG_COLORS   BIT(0)

#include <zephyr/logging/log_output.h>

Flag forcing ANSI escape code colors, red (errors), yellow (warnings).

◆ LOG_OUTPUT_FLAG_CRLF_LFONLY

#define LOG_OUTPUT_FLAG_CRLF_LFONLY   BIT(5)

#include <zephyr/logging/log_output.h>

Flag forcing a single LF character for line breaks.

◆ LOG_OUTPUT_FLAG_CRLF_NONE

#define LOG_OUTPUT_FLAG_CRLF_NONE   BIT(4)

#include <zephyr/logging/log_output.h>

Flag preventing the logger from adding CR and LF characters.

◆ LOG_OUTPUT_FLAG_FORMAT_SYSLOG

#define LOG_OUTPUT_FLAG_FORMAT_SYSLOG   BIT(6)

#include <zephyr/logging/log_output.h>

Flag forcing syslog format specified in RFC 5424.

◆ LOG_OUTPUT_FLAG_FORMAT_TIMESTAMP

#define LOG_OUTPUT_FLAG_FORMAT_TIMESTAMP   BIT(2)

#include <zephyr/logging/log_output.h>

Flag forcing timestamp formatting.

◆ LOG_OUTPUT_FLAG_LEVEL

#define LOG_OUTPUT_FLAG_LEVEL   BIT(3)

#include <zephyr/logging/log_output.h>

Flag forcing severity level prefix.

◆ LOG_OUTPUT_FLAG_SKIP_SOURCE

#define LOG_OUTPUT_FLAG_SKIP_SOURCE   BIT(8)

#include <zephyr/logging/log_output.h>

Flag forcing to skip logging the source.

◆ LOG_OUTPUT_FLAG_THREAD

#define LOG_OUTPUT_FLAG_THREAD   BIT(7)

#include <zephyr/logging/log_output.h>

Flag thread id or name prefix.

◆ LOG_OUTPUT_FLAG_TIMESTAMP

#define LOG_OUTPUT_FLAG_TIMESTAMP   BIT(1)

#include <zephyr/logging/log_output.h>

Flag forcing timestamp.