REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
|
Loading...
Searching...
No Matches
msg::StreamLogger Struct Reference
#include <jsonl_logging.h>
Inheritance diagram for msg::StreamLogger:

Collaboration diagram for msg::StreamLogger:

Public Member Functions | |
StreamLogger (Print &_target) | |
virtual size_t | write (uint8_t b) override |
Public Attributes | |
uint16_t | line_count = 0 |
bool | new_line = true |
::utils::StreamingJson | target |
Detailed Description
Definition at line 40 of file jsonl_logging.h.
Constructor & Destructor Documentation
◆ StreamLogger()
|
inline |
Definition at line 45 of file jsonl_logging.h.
Member Function Documentation
◆ write()
|
overridevirtual |
Definition at line 9 of file json_logging.cpp.
References utils::StreamingJson::begin_dict(), utils::StreamingJson::begin_str(), utils::StreamingJson::end_dict(), utils::StreamingJson::end_str(), utils::StreamingJson::key(), utils::StreamingJson::kv(), line_count, new_line, utils::StreamingJson::output, and target.
Referenced by msg::Log::write().
Member Data Documentation
◆ line_count
uint16_t msg::StreamLogger::line_count = 0 |
Definition at line 41 of file jsonl_logging.h.
Referenced by write().
◆ new_line
bool msg::StreamLogger::new_line = true |
Definition at line 42 of file jsonl_logging.h.
Referenced by write().
◆ target
::utils::StreamingJson msg::StreamLogger::target |
Definition at line 43 of file jsonl_logging.h.
Referenced by write().
The documentation for this struct was generated from the following files:
- lib/communication/src/protocol/jsonl_logging.h
- lib/communication/src/protocol/json_logging.cpp