SaturnRingLibrary 0.9.2
SGL wrapper
Loading...
Searching...
No Matches
SRL::Logger::Log Class Reference

Detailed Description

Log class.

Core logging facade. Uses templates for level-based filtering and output selection. All operations are inline and constexpr where possible for zero runtime cost when filtered.

#include <srl_log.hpp>

Classes

class  LogLevelHelper
 LogLevelHelper: Utility for level-to-string conversion. More...

Public Member Functions

 Log ()=delete
 Deleted default constructor (static-only).
 Log (const Log &)=delete
 Deleted copy constructor.
Logoperator= (const Log &)=delete
 Deleted assignment operator.

Static Public Member Functions

static SRL::Logger::LogLevels GetLogLevel ()
 Get current minimum log level.
template<SRL::Logger::LogLevels lvl = MinLevel, typename Output = DefaultLogger, typename... Args>
static void LogPrint (const char *message, Args... args)
 Formatted log printer.
template<SRL::Logger::LogLevels lvl, typename Output = DefaultLogger>
static void LogPrintInternal (const char *message)
 Internal raw message printer (no formatting).

Static Public Attributes

static constexpr SRL::Logger::LogLevels MinLevel = SRL::Logger::LogLevels::NONE
 Default min level if SRL_LOG_LEVEL undefined: NONE.