|
Sound Byte Libs 1ee2ca6
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
Logger class with timestamp provider and output sink. More...
Go to the source code of this file.
Classes | |
| struct | sbl::log::NullTimestamp |
| Default timestamp provider (returns 0) More... | |
| struct | sbl::log::NullOutput |
| Null output sink (discards all output) More... | |
| class | sbl::log::Logger< Output, TimestampProvider, MinLevel > |
| Logger class with compile-time level filtering. More... | |
Namespaces | |
| namespace | sbl |
| Root namespace for all Sound Byte Libs functionality. | |
| namespace | sbl::log |
Enumerations | |
| enum class | sbl::log::Level : uint8_t { sbl::log::Off = 0 , sbl::log::Error = 1 , sbl::log::Warn = 2 , sbl::log::Info = 3 , sbl::log::Debug = 4 , sbl::log::Trace = 5 } |
| Log severity levels. More... | |
Functions | |
| constexpr char | sbl::log::level_char (Level level) |
| Convert level to single character. | |
| constexpr const char * | sbl::log::basename (const char *path) |
| Extract filename from path (compile-time safe) | |
Logger class with timestamp provider and output sink.
Output format: I 12345 main.cpp:42| Message
The Logger class is templated on:
Use the macros in macros.hpp for automatic file/line capture.
Definition in file logger.hpp.