All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Classes | Enumerations | Functions
Aux::Log Namespace Reference

Namespaces

 Impl
 
 Settings
 

Classes

struct  Location
 

Enumerations

enum  LogLevel {
  LogLevel::trace, LogLevel::debug, LogLevel::info, LogLevel::warn,
  LogLevel::error, LogLevel::fatal
}
 

Functions

void setLogLevel (std::string logLevel)
 Accept loglevel as string and set. More...
 
std::string getLogLevel ()
 
void printLogLevel (std::ostream &stream, LogLevel p)
 
void printTime (std::ostream &stream, const std::chrono::time_point< std::chrono::system_clock > &timePoint)
 
void printLocation (std::ostream &stream, const Location &loc)
 
std::tuple< std::string,
std::string > 
getTerminalFormat (LogLevel p)
 
template<typename... T>
void log (const Location &loc, LogLevel p, const T &...args)
 
template<typename... T>
void logF (const Location &loc, LogLevel p, const std::string &format, const T &...args)
 

Enumeration Type Documentation

enum Aux::Log::LogLevel
strong
Enumerator
trace 
debug 
info 
warn 
error 
fatal 

Function Documentation

std::string Aux::Log::getLogLevel ( )
Returns
current loglevel as string
std::tuple<std::string, std::string> Aux::Log::getTerminalFormat ( LogLevel  p)
template<typename... T>
void Aux::Log::log ( const Location &  loc,
LogLevel  p,
const T &...  args 
)
template<typename... T>
void Aux::Log::logF ( const Location &  loc,
LogLevel  p,
const std::string &  format,
const T &...  args 
)
void Aux::Log::printLocation ( std::ostream &  stream,
const Location &  loc 
)
void Aux::Log::printLogLevel ( std::ostream &  stream,
LogLevel  p 
)
void Aux::Log::printTime ( std::ostream &  stream,
const std::chrono::time_point< std::chrono::system_clock > &  timePoint 
)
void Aux::Log::setLogLevel ( std::string  logLevel)

Accept loglevel as string and set.

Parameters
logLevelas string