Zephyr API 3.6.99
Loading...
Searching...
No Matches
log_output_dict.h File Reference
#include <zephyr/logging/log_output.h>
#include <zephyr/logging/log_msg.h>
#include <stdarg.h>
#include <zephyr/toolchain.h>
#include <zephyr/sys/util.h>

Go to the source code of this file.

Data Structures

struct  log_dict_output_normal_msg_hdr_t
 Output header for one dictionary based log message. More...
 
struct  log_dict_output_dropped_msg_t
 Output for one dictionary based log message about dropped messages. More...
 

Enumerations

enum  log_dict_output_msg_type { MSG_NORMAL = 0 , MSG_DROPPED_MSG = 1 }
 Log message type. More...
 

Functions

void log_dict_output_msg_process (const struct log_output *log_output, struct log_msg *msg, uint32_t flags)
 Process log messages v2 for dictionary-based logging.
 
void log_dict_output_dropped_process (const struct log_output *output, uint32_t cnt)
 Process dropped messages indication for dictionary-based logging.
 

Enumeration Type Documentation

◆ log_dict_output_msg_type

Log message type.

Enumerator
MSG_NORMAL 
MSG_DROPPED_MSG 

Function Documentation

◆ log_dict_output_dropped_process()

void log_dict_output_dropped_process ( const struct log_output * output,
uint32_t cnt )

Process dropped messages indication for dictionary-based logging.

Function prints error message indicating lost log messages.

Parameters
outputPointer to the log output instance.
cntNumber of dropped messages.

◆ log_dict_output_msg_process()

void log_dict_output_msg_process ( const struct log_output * log_output,
struct log_msg * msg,
uint32_t flags )

Process log messages v2 for dictionary-based logging.

Function is using provided context with the buffer and output function to process formatted string and output the data.

Parameters
log_outputPointer to the log output instance.
msgLog message.
flagsOptional flags.