|
Zephyr Project API 4.0.0
A Scalable Open Source RTOS
|
#include <zephyr/logging/log_msg.h>#include <stdarg.h>#include <zephyr/sys/__assert.h>#include <zephyr/sys/util.h>#include <zephyr/logging/log_output.h>#include <zephyr/sys/iterable_sections.h>Go to the source code of this file.
Data Structures | |
| union | log_backend_evt_arg |
| Argument(s) for backend events. More... | |
| struct | log_backend_api |
| Logger backend API. More... | |
| struct | log_backend_control_block |
| Logger backend control block. More... | |
| struct | log_backend |
| Logger backend structure. More... | |
Macros | |
| #define | LOG_BACKEND_DEFINE(_name, _api, _autostart, ...) |
| Macro for creating a logger backend instance. | |
Enumerations | |
| enum | log_backend_evt { LOG_BACKEND_EVT_PROCESS_THREAD_DONE , LOG_BACKEND_EVT_MAX } |
| Backend events. More... | |
Functions | |
| static void | log_backend_init (const struct log_backend *const backend) |
| Initialize or initiate the logging backend. | |
| static int | log_backend_is_ready (const struct log_backend *const backend) |
| Poll for backend readiness. | |
| static void | log_backend_msg_process (const struct log_backend *const backend, union log_msg_generic *msg) |
| Process message. | |
| static void | log_backend_dropped (const struct log_backend *const backend, uint32_t cnt) |
| Notify backend about dropped log messages. | |
| static void | log_backend_panic (const struct log_backend *const backend) |
| Reconfigure backend to panic mode. | |
| static void | log_backend_id_set (const struct log_backend *const backend, uint8_t id) |
| Set backend id. | |
| static uint8_t | log_backend_id_get (const struct log_backend *const backend) |
| Get backend id. | |
| static const struct log_backend * | log_backend_get (uint32_t idx) |
| Get backend. | |
| static int | log_backend_count_get (void) |
| Get number of backends. | |
| static void | log_backend_activate (const struct log_backend *const backend, void *ctx) |
| Activate backend. | |
| static void | log_backend_deactivate (const struct log_backend *const backend) |
| Deactivate backend. | |
| static bool | log_backend_is_active (const struct log_backend *const backend) |
| Check state of the backend. | |
| static int | log_backend_format_set (const struct log_backend *backend, uint32_t log_type) |
| Set logging format. | |
| static void | log_backend_notify (const struct log_backend *const backend, enum log_backend_evt event, union log_backend_evt_arg *arg) |
| Notify a backend of an event. | |