|
Sound Byte Libs 1ee2ca6
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
Logger class with compile-time level filtering. More...
#include <logger.hpp>
Static Public Member Functions | |
| static void | log (Level level, const char *file, int line, const char *fmt,...) |
| Log a message with file/line location. | |
| static void | log_simple (Level level, const char *fmt,...) |
| Log without location info (simpler format) | |
Static Public Attributes | |
| static constexpr size_t | BUFFER_SIZE = 256 |
Logger class with compile-time level filtering.
| Output | Sink type with static write(const char*) method |
| TimestampProvider | Type with static uint32_t now() method |
| MinLevel | Minimum level to compile (lower levels are eliminated) |
Definition at line 89 of file logger.hpp.
|
inlinestatic |
Log a message with file/line location.
| level | Log severity level |
| file | Source file name |
| line | Source line number |
| fmt | Printf-style format string |
| ... | Format arguments |
Definition at line 102 of file logger.hpp.
References sbl::log::basename(), sbl::log::Logger< Output, TimestampProvider, MinLevel >::BUFFER_SIZE, sbl::log::format(), sbl::log::level_char(), and sbl::log::vformat().
|
inlinestatic |
Log without location info (simpler format)
Format: I 12345| Message
Definition at line 143 of file logger.hpp.
References sbl::log::Logger< Output, TimestampProvider, MinLevel >::BUFFER_SIZE, sbl::log::format(), sbl::log::level_char(), and sbl::log::vformat().
|
staticconstexpr |
Definition at line 91 of file logger.hpp.
Referenced by sbl::log::Logger< Output, TimestampProvider, MinLevel >::log(), and sbl::log::Logger< Output, TimestampProvider, MinLevel >::log_simple().