Tracore
Public Member Functions | Static Public Member Functions | List of all members
util::Logger Class Reference

#include <Logger.h>

Public Member Functions

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

Static Public Member Functions

static LoggerInstance ()
 
static void SetDebug (bool debug)
 
static void SetInfo (bool info)
 
static bool IsDebugEnabled ()
 
static bool IsInfoEnabled ()
 
static void LogInfo (std::string const &message)
 
static void LogError (std::string const &message)
 
static void LogDebug (std::string const &message)
 

Detailed Description

Utility class for logging. Is a singleton. Provides three different types of messages.

Constructor & Destructor Documentation

util::Logger::Logger ( Logger const &  )
delete

-> Singleton

Member Function Documentation

static Logger& util::Logger::Instance ( )
inlinestatic

Gets THE instance of this singleton. Creates a new instance if not already created.

bool util::Logger::IsDebugEnabled ( )
static

If the debug messages are logged.

Returns
True, if the debug messages are logged
bool util::Logger::IsInfoEnabled ( )
static

If the info messages are logged.

Returns
True, if the info messages are logged
void util::Logger::LogDebug ( std::string const &  message)
static

Logs the given message as an debug message.

Parameters
messageThe debug message to log
void util::Logger::LogError ( std::string const &  message)
static

Logs the given message as an error message.

Parameters
messageThe error message to log
void util::Logger::LogInfo ( std::string const &  message)
static

Logs the given message as an info message.

Parameters
messageThe info message to log
void util::Logger::operator= ( Logger const &  )
delete

-> Singleton

void util::Logger::SetDebug ( bool  debug)
static

Sets the debug message logging.

Parameters
debugTrue, if the debug messages should be logged
void util::Logger::SetInfo ( bool  info)
static

Sets the info message logging.

Parameters
infoTrue, if the info messages should be logged

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