Logger
Loading...
Searching...
No Matches
Logger Class Reference

#include <Logger.hpp>

Public Types

enum class  Level {
  Trace , Debug , Info , Warn ,
  Error , Critical
}
 

Public Member Functions

 Logger (const Logger &)=delete
 
 Logger (Logger &&)=delete
 
Loggeroperator= (const Logger &)=delete
 
Loggeroperator= (Logger &&)=delete
 

Static Public Member Functions

static LoggerGetInstance ()
 
static void SetLevel (const Level level)
 
static void EnableFileOutput ()
 
static void DisableFileOutput ()
 
static void SetFileOutput (const char *output)
 
template<typename... Args>
static void Trace (const char *format, Args... args)
 
template<typename... Args>
static void Debug (const char *format, Args... args)
 
template<typename... Args>
static void Info (const char *format, Args... args)
 
template<typename... Args>
static void Warn (const char *format, Args... args)
 
template<typename... Args>
static void Error (const char *format, Args... args)
 
template<typename... Args>
static void Critical (const char *format, Args... args)
 
static void Trace (const char *str)
 
static void Debug (const char *str)
 
static void Info (const char *str)
 
static void Warn (const char *str)
 
static void Error (const char *str)
 
static void Critical (const char *str)
 

Member Enumeration Documentation

◆ Level

enum class Logger::Level
strong
Enumerator
Trace 
Debug 
Info 
Warn 
Error 
Critical 

Constructor & Destructor Documentation

◆ Logger() [1/2]

Logger::Logger ( const Logger )
delete

◆ Logger() [2/2]

Logger::Logger ( Logger &&  )
delete

Member Function Documentation

◆ Critical() [1/2]

template<typename... Args>
static void Logger::Critical ( const char *  format,
Args...  args 
)
inlinestatic

◆ Critical() [2/2]

static void Logger::Critical ( const char *  str)
inlinestatic

◆ Debug() [1/2]

template<typename... Args>
static void Logger::Debug ( const char *  format,
Args...  args 
)
inlinestatic

◆ Debug() [2/2]

static void Logger::Debug ( const char *  str)
inlinestatic

◆ DisableFileOutput()

static void Logger::DisableFileOutput ( )
inlinestatic

◆ EnableFileOutput()

static void Logger::EnableFileOutput ( )
inlinestatic

◆ Error() [1/2]

template<typename... Args>
static void Logger::Error ( const char *  format,
Args...  args 
)
inlinestatic

◆ Error() [2/2]

static void Logger::Error ( const char *  str)
inlinestatic

◆ GetInstance()

static Logger & Logger::GetInstance ( )
inlinestatic

◆ Info() [1/2]

template<typename... Args>
static void Logger::Info ( const char *  format,
Args...  args 
)
inlinestatic

◆ Info() [2/2]

static void Logger::Info ( const char *  str)
inlinestatic

◆ operator=() [1/2]

Logger & Logger::operator= ( const Logger )
delete

◆ operator=() [2/2]

Logger & Logger::operator= ( Logger &&  )
delete

◆ SetFileOutput()

static void Logger::SetFileOutput ( const char *  output)
inlinestatic

◆ SetLevel()

static void Logger::SetLevel ( const Level  level)
inlinestatic

◆ Trace() [1/2]

template<typename... Args>
static void Logger::Trace ( const char *  format,
Args...  args 
)
inlinestatic

◆ Trace() [2/2]

static void Logger::Trace ( const char *  str)
inlinestatic

◆ Warn() [1/2]

template<typename... Args>
static void Logger::Warn ( const char *  format,
Args...  args 
)
inlinestatic

◆ Warn() [2/2]

static void Logger::Warn ( const char *  str)
inlinestatic

The documentation for this class was generated from the following file: