ASGE  3.2.0
Simple Game Framework in GL
Logging::LoggerBase Class Reference

#include <Logger.hpp>

Inheritance diagram for Logging::LoggerBase:
[legend]

Public Member Functions

 LoggerBase (const LoggingConfig_t &)
 
virtual void log (const std::string &, const LogLevel)
 
virtual void log (const std::string &)
 

Public Attributes

const std::unordered_map< LogLevel, std::string, EnumHasheruncolored
 
const std::unordered_map< LogLevel, std::string, EnumHashercolored
 

Protected Attributes

std::mutex lock
 

Detailed Description

logger base class

not pure virtual so you can use as a null logger if you want

Definition at line 158 of file Logger.hpp.

Member Data Documentation

◆ colored

const std::unordered_map<LogLevel, std::string, EnumHasher> Logging::LoggerBase::colored
Initial value:
{
{ LogLevel::ERRORS, " \x1b[31;1m[ERROR]\x1b[0m " },
{ LogLevel::WARN, " \x1b[33;1m[WARN]\x1b[0m " },
{ LogLevel::INFO, " \x1b[32;1m[INFO]\x1b[0m " },
{ LogLevel::DEBUG, " \x1b[34;1m[DEBUG]\x1b[0m " },
{ LogLevel::TRACE, " \x1b[37;1m[TRACE]\x1b[0m " }
}
@ WARN
Enum value INFO.
@ INFO
Enum value DEBUG.
@ ERRORS
Enum value WARN.
@ DEBUG
Enum value TRACE.

Log level mappings to coloured headers.

Definition at line 173 of file Logger.hpp.

◆ uncolored

const std::unordered_map<LogLevel, std::string, EnumHasher> Logging::LoggerBase::uncolored
Initial value:
{
{ LogLevel::ERRORS, " [ERROR] " },
{ LogLevel::WARN, " [WARN] " },
{ LogLevel::INFO, " [INFO] " },
{ LogLevel::DEBUG, " [DEBUG] " },
{ LogLevel::TRACE, " [TRACE] " }
}

Log level mappings to plain-text headers.

Definition at line 163 of file Logger.hpp.


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