Public Types | |
enum | LogLevel { Trace = 0, Debug, Warn, Error, Fatal, Nothing } |
Public Member Functions | |
void | setLogLevelForFile (LogLevel loglevel) |
function to set log level for file (messages with a lower level are ignored) | |
void | setLogLevelForConsole (LogLevel loglevel) |
function to set log level for console (messages with a lower level are ignored) | |
void | log (LogLevel level, const std::string message) |
function to write log messages | |
void | log (LogLevel level, const char *message) |
function to write log messages | |
Static Public Member Functions | |
static Logger * | instance () |
returns instance of logger class (-> logger is designed as a singelton) |
enum Logger::LogLevel |
Logger * Logger::instance | ( | ) | [static] |
returns instance of logger class (-> logger is designed as a singelton)
void Logger::log | ( | LogLevel | level, | |
const char * | message | |||
) |
function to write log messages
void Logger::log | ( | LogLevel | level, | |
const std::string | message | |||
) |
function to write log messages
void Logger::setLogLevelForConsole | ( | LogLevel | loglevel | ) |
function to set log level for console (messages with a lower level are ignored)
void Logger::setLogLevelForFile | ( | LogLevel | loglevel | ) |
function to set log level for file (messages with a lower level are ignored)