REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
Loading...
Searching...
No Matches

This provides a simple log facility for error reporting. More...

#include <jsonl_logging.h>

Inheritance diagram for msg::Log:
Collaboration diagram for msg::Log:

Public Member Functions

 Log ()
 
virtual size_t write (uint8_t b) override
 

Static Public Member Functions

static Logget ()
 

Public Attributes

msg::StreamLogger formatter
 
utils::PrintMultiplexer sinks
 

Detailed Description

This provides a simple log facility for error reporting.

By default, this will be set up at the main() to log at least to the Serial console and to the startup log buffer. However, also other targets such as Ethernet/TCP/IP clients can be hooked.

Definition at line 57 of file jsonl_logging.h.

Constructor & Destructor Documentation

◆ Log()

msg::Log::Log ( )
inline

Definition at line 61 of file jsonl_logging.h.

Member Function Documentation

◆ get()

static Log & msg::Log::get ( )
inlinestatic

Definition at line 68 of file jsonl_logging.h.

Referenced by msg::activate_serial_log(), utils::check_and_log_crash(), and setup().

◆ write()

virtual size_t msg::Log::write ( uint8_t b)
inlineoverridevirtual

Definition at line 63 of file jsonl_logging.h.

References formatter, and msg::StreamLogger::write().

Member Data Documentation

◆ formatter

msg::StreamLogger msg::Log::formatter

Definition at line 58 of file jsonl_logging.h.

Referenced by write().

◆ sinks

utils::PrintMultiplexer msg::Log::sinks

Definition at line 59 of file jsonl_logging.h.

Referenced by msg::activate_serial_log(), and setup().


The documentation for this struct was generated from the following file: