Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
log_output_dict.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2018 Nordic Semiconductor ASA
3 * Copyright (c) 2021 Intel Corporation
4 *
5 * SPDX-License-Identifier: Apache-2.0
6 */
7
13
14#ifndef ZEPHYR_INCLUDE_LOGGING_LOG_OUTPUT_DICT_H_
15#define ZEPHYR_INCLUDE_LOGGING_LOG_OUTPUT_DICT_H_
16
19#include <stdarg.h>
20#include <zephyr/toolchain.h>
21#include <zephyr/sys/util.h>
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
31
37
48
54
65 struct log_msg *msg, uint32_t flags);
66
74void log_dict_output_dropped_process(const struct log_output *output, uint32_t cnt);
75
77
78#ifdef __cplusplus
79}
80#endif
81
82#endif /* ZEPHYR_INCLUDE_LOGGING_LOG_OUTPUT_DICT_H_ */
uint32_t log_timestamp_t
Timestamp value associated with a log message.
Definition log_msg.h:54
void log_dict_output_dropped_process(const struct log_output *output, uint32_t cnt)
Process dropped messages indication for dictionary-based logging.
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.
log_dict_output_msg_type
Dictionary output message type.
Definition log_output_dict.h:33
@ MSG_NORMAL
Normal log message.
Definition log_output_dict.h:34
@ MSG_DROPPED_MSG
Notification about dropped messages.
Definition log_output_dict.h:35
Header file for log messages.
Header file for the log output formatter.
flags
Definition parser.h:97
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
__UINTPTR_TYPE__ uintptr_t
Definition stdint.h:105
__UINT16_TYPE__ uint16_t
Definition stdint.h:89
On-wire dictionary-based message reporting dropped messages.
Definition log_output_dict.h:50
uint8_t type
Message type, see log_dict_output_msg_type.
Definition log_output_dict.h:51
uint16_t num_dropped_messages
Number of dropped messages.
Definition log_output_dict.h:52
On-wire header for one dictionary-based log message.
Definition log_output_dict.h:39
uint32_t package_len
Length of the cbprintf package, in bytes.
Definition log_output_dict.h:43
uint32_t level
Severity level.
Definition log_output_dict.h:42
uint8_t type
Message type, see log_dict_output_msg_type.
Definition log_output_dict.h:40
uintptr_t source
Address identifying the log source.
Definition log_output_dict.h:45
uint32_t data_len
Length of the appended hexdump data, in bytes.
Definition log_output_dict.h:44
uint32_t domain
Domain ID.
Definition log_output_dict.h:41
log_timestamp_t timestamp
Message timestamp.
Definition log_output_dict.h:46
Log output instance.
Definition log_output.h:119
Misc utilities.
Macros to abstract toolchain specific capabilities.