Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
log_ctrl.h File Reference
#include <kernel.h>
#include <logging/log_backend.h>
#include <logging/log_msg.h>
#include <syscalls/log_ctrl.h>

Go to the source code of this file.

Macros

#define LOG_CORE_INIT()   do { } while (false)
 
#define LOG_INIT()   0
 
#define LOG_PANIC()   /* Empty */
 
#define LOG_PROCESS()   false
 

Typedefs

typedef log_timestamp_t(* log_timestamp_get_t) (void)
 

Functions

void log_core_init (void)
 Function system initialization of the logger. More...
 
void log_init (void)
 Function for user initialization of the logger. More...
 
void log_thread_set (k_tid_t process_tid)
 Function for providing thread which is processing logs. More...
 
int log_set_timestamp_func (log_timestamp_get_t timestamp_getter, uint32_t freq)
 Function for providing timestamp function. More...
 
void log_panic (void)
 Switch the logger subsystem to the panic mode. More...
 
bool log_process (bool bypass)
 Process one pending log message. More...
 
uint32_t log_buffered_cnt (void)
 Return number of buffered log messages. More...
 
uint32_t log_src_cnt_get (uint32_t domain_id)
 Get number of independent logger sources (modules and instances) More...
 
const char * log_source_name_get (uint32_t domain_id, uint32_t source_id)
 Get name of the source (module or instance). More...
 
const char * log_domain_name_get (uint32_t domain_id)
 Get name of the domain. More...
 
uint32_t log_filter_get (struct log_backend const *const backend, uint32_t domain_id, int16_t source_id, bool runtime)
 Get source filter for the provided backend. More...
 
uint32_t log_filter_set (struct log_backend const *const backend, uint32_t domain_id, int16_t source_id, uint32_t level)
 Set filter on given source for the provided backend. More...
 
void log_backend_enable (struct log_backend const *const backend, void *ctx, uint32_t level)
 Enable backend with initial maximum filtering level. More...
 
void log_backend_disable (struct log_backend const *const backend)
 Disable backend. More...