|
Sound Byte Libs 0.5.1-340-gab5b79a
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
Tagged output lines: a builder and a throttled value report. More...
Tagged output lines: a builder and a throttled value report.
Lines have the tagged-output form #TAG key=value ..., terminated with \r\n. They are written to the sink as built, without the logger's level, time and location prefix, so a host tool reads them by their first character.
TaggedLine builds one line in a fixed buffer. A field that does not fit is left out and the line marks itself overflowed; what it writes is always whole fields.
TaggedValues keeps a set of named values and writes them under one tag when one has moved more than a threshold since the last write and a minimum interval has passed. A change inside the interval is written when the interval ends, so the last value always arrives. Every write carries every value, split over as many lines as the buffer needs.
Both write to the log sink, so both belong to the main loop: the audio and control interrupts never log.
Usage:
Definition in file tagged.hpp.
Go to the source code of this file.
Classes | |
| class | sbl::log::TaggedLine< SIZE > |
One #TAG key=value ... line in a fixed buffer. More... | |
| class | sbl::log::TaggedValues< COUNT, LINE > |
| Named values written under one tag, on change, at a capped rate. More... | |
Namespaces | |
| namespace | sbl |
| Root namespace for all Sound Byte Libs code. | |
| namespace | sbl::log |
| Logging. | |
Variables | |
| constexpr uint8_t | sbl::log::TAGGED_MAX_DECIMALS = 6 |
| constexpr float | sbl::log::TAGGED_MAX_MAGNITUDE = 4.0e9f |