Pioneer
Loading...
Searching...
No Matches
Classes | Enumerations | Functions | Variables
Log Namespace Reference

Classes

struct  Logger
 

Enumerations

enum class  Severity : int8_t {
  Fatal = -3 , Error = -2 , Warning = -1 , Info = 0 ,
  Debug = 1 , Verbose = 2
}
 

Functions

void SetLog (Logger &log)
 
LoggerGetLog ()
 
Severity GetLogLevel ()
 
void SetLogLevel (Severity sv)
 
void LogOld (Severity sv, std::string message)
 
void LogFatalOld (std::string message)
 
void LogInternal (Severity sv, const char *message, fmt::format_args args)
 
void LogFatalInternal (const char *message, fmt::format_args args)
 
void IncreaseIndent ()
 
void DecreaseIndent ()
 
template<typename... Args>
void Verbose (const char *message, Args... args)
 
template<typename... Args>
void Info (const char *message, Args... args)
 
template<typename... Args>
void Debug (const char *message, Args... args)
 
template<typename... Args>
void Warning (const char *message, Args... args)
 
template<typename... Args>
void Error (const char *message, Args... args)
 
template<typename... Args>
void Fatal (const char *message, Args... args)
 

Variables

Logger s_defaultLog
 
std::map< Severity, std::string > s_severityNames
 

Enumeration Type Documentation

◆ Severity

enum class Log::Severity : int8_t
strong
Enumerator
Fatal 
Error 
Warning 
Info 
Debug 
Verbose 

Function Documentation

◆ Debug()

template<typename... Args>
void Log::Debug ( const char *  message,
Args...  args 
)
inline
Here is the call graph for this function:

◆ DecreaseIndent()

void Log::DecreaseIndent ( )
Here is the call graph for this function:

◆ Error()

template<typename... Args>
void Log::Error ( const char *  message,
Args...  args 
)
inline
Here is the call graph for this function:

◆ Fatal()

template<typename... Args>
void Log::Fatal ( const char *  message,
Args...  args 
)
inline
Here is the call graph for this function:

◆ GetLog()

Log::Logger * Log::GetLog ( )

◆ GetLogLevel()

Severity Log::GetLogLevel ( )
inline
Here is the call graph for this function:

◆ IncreaseIndent()

void Log::IncreaseIndent ( )
Here is the call graph for this function:

◆ Info()

template<typename... Args>
void Log::Info ( const char *  message,
Args...  args 
)
inline
Here is the call graph for this function:

◆ LogFatalInternal()

void Log::LogFatalInternal ( const char *  message,
fmt::format_args  args 
)
Here is the call graph for this function:

◆ LogFatalOld()

void Log::LogFatalOld ( std::string  message)
Here is the call graph for this function:

◆ LogInternal()

void Log::LogInternal ( Severity  sv,
const char *  message,
fmt::format_args  args 
)
Here is the call graph for this function:

◆ LogOld()

void Log::LogOld ( Severity  sv,
std::string  message 
)
Here is the call graph for this function:

◆ SetLog()

void Log::SetLog ( Logger log)

◆ SetLogLevel()

void Log::SetLogLevel ( Severity  sv)
inline
Here is the call graph for this function:

◆ Verbose()

template<typename... Args>
void Log::Verbose ( const char *  message,
Args...  args 
)
inline
Here is the call graph for this function:

◆ Warning()

template<typename... Args>
void Log::Warning ( const char *  message,
Args...  args 
)
inline
Here is the call graph for this function:

Variable Documentation

◆ s_defaultLog

Logger Log::s_defaultLog

◆ s_severityNames

std::map<Severity, std::string> Log::s_severityNames
Initial value:
= {
{ Severity::Fatal, "Fatal:" },
{ Severity::Error, "Error:" },
{ Severity::Warning, "Warning:" },
{ Severity::Info, "Info:" },
{ Severity::Debug, "Debug:" },
{ Severity::Verbose, "Verbose:" }
}