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

Detailed Description

Log class.

#include <srl_log.hpp>

Classes

class  LogLevelHelper
 Log levels helper class. More...
 

Public Member Functions

 Log ()=delete
 disable default constructor
 
 Log (const Log &)=delete
 disable copy constructor
 
Logoperator= (const Log &)=delete
 disable assignment operator
 

Static Public Member Functions

template<SRL::Logger::LogLevels lvl>
static void LogPrint (const char *message)
 Log message.
 
template<typename ... Args>
static void LogPrint (const char *message, Args...args)
 Log message.
 
template<SRL::Logger::LogLevels lvl, typename ... Args>
static void LogPrint (const char *message, Args...args)
 Log message.
 

Static Public Attributes

static constexpr SRL::Logger::LogLevels MinLevel = SRL::Logger::LogLevels::INFO
 Minimum log level to be output.
 

Member Function Documentation

◆ LogPrint() [1/3]

template<SRL::Logger::LogLevels lvl>
static void SRL::Logger::Log::LogPrint ( const char * message)
inlinestatic

Log message.

Template Parameters
lvlLog level
Parameters
messageCustom message to show

◆ LogPrint() [2/3]

template<typename ... Args>
static void SRL::Logger::Log::LogPrint ( const char * message,
Args... args )
inlinestatic

Log message.

Parameters
messageCustom message to show
argsText arguments

◆ LogPrint() [3/3]

template<SRL::Logger::LogLevels lvl, typename ... Args>
static void SRL::Logger::Log::LogPrint ( const char * message,
Args... args )
inlinestatic

Log message.

Template Parameters
lvlLog level
Parameters
messageCustom message to show
argsText arguments