Static compile-time logger wrapper managing severity level filtering and zero-heap string formatting.
More...
|
| const char * | category () const noexcept |
| | Get category tag.
|
| |
| template<typename... Args> |
| void | critical (const char *fmt, Args &&... args) const |
| |
| template<typename... Args> |
| void | debug (const char *fmt, Args &&... args) const |
| |
| template<typename... Args> |
| void | error (const char *fmt, Args &&... args) const |
| |
| template<typename... Args> |
| void | info (const char *fmt, Args &&... args) const |
| |
| template<typename... Args> |
| void | log (LogLevel level, const char *fmt, Args &&... args) const |
| | Log formatted message directly to sink if severity level meets minimum threshold.
|
| |
| | LoggerT (const char *category="App", LogLevel minLevel=LogLevel::Info, LogSink sink=LogSink{}) |
| |
| template<typename TargetEventSink , typename... Args> |
| void | logToSink (TargetEventSink &&targetSink, LogLevel level, const char *fmt, Args &&... args) const |
| | Post formatted LogEvent to a target Corium EventSink (lock-free MPSC event bus).
|
| |
| LogLevel | minLevel () const noexcept |
| | Get minimum log severity level.
|
| |
| void | setCategory (const char *category) noexcept |
| | Set category string tag.
|
| |
| void | setMinLevel (LogLevel level) noexcept |
| | Set minimum log severity level.
|
| |
| const LogSink & | sink () const noexcept |
| |
| LogSink & | sink () noexcept |
| | Access underlying log sink reference.
|
| |
| template<typename... Args> |
| void | trace (const char *fmt, Args &&... args) const |
| |
| template<typename... Args> |
| void | warn (const char *fmt, Args &&... args) const |
| |
template<typename LogSink = sinks::ConsoleLogSink, std::size_t MaxMessageSize = 256>
class corium::logging::LoggerT< LogSink, MaxMessageSize >
Static compile-time logger wrapper managing severity level filtering and zero-heap string formatting.
- Template Parameters
-
| LogSink | Log sink backend handling actual log entry output (e.g. ConsoleLogSink, FileLogSink, NullLogSink). |
| MaxMessageSize | Maximum character length for formatted log messages. |