REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
|
This provides a simple log facility for error reporting. More...
#include <jsonl_logging.h>


Public Member Functions | |
Log () | |
virtual size_t | write (uint8_t b) override |
Static Public Member Functions | |
static Log & | get () |
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()
|
inline |
Definition at line 61 of file jsonl_logging.h.
Member Function Documentation
◆ 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()
|
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:
- lib/communication/src/protocol/jsonl_logging.h