Zephyr API Documentation  3.5.0
A Scalable Open Source RTOS
3.5.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
log_frontend.h File Reference

Go to the source code of this file.

Functions

void log_frontend_init (void)
 Initialize frontend.
 
void log_frontend_msg (const void *source, const struct log_msg_desc desc, uint8_t *package, const void *data)
 Log message.
 
void log_frontend_panic (void)
 Panic state notification.
 

Function Documentation

◆ log_frontend_init()

void log_frontend_init ( void  )

Initialize frontend.

◆ log_frontend_msg()

void log_frontend_msg ( const void *  source,
const struct log_msg_desc  desc,
uint8_t package,
const void *  data 
)

Log message.

Message details does not contain timestamp. Since function is called in the context of log message call, implementation can use its own timestamping scheme.

Parameters
sourcePointer to a structure associated with given source. It points to static structure or dynamic structure if runtime filtering is enabled. log_const_source_id or log_dynamic_source_id can be used to determine source id.
descMessage descriptor.
packageCbprintf package containing logging formatted string. Length s in desc.
dataHexdump data. Length is in desc.

◆ log_frontend_panic()

void log_frontend_panic ( void  )

Panic state notification.