Flow Visualization 1.0
Public Types | Public Member Functions | Static Public Member Functions

Logger Class Reference

singleton class of a Logger that saves events to log.txt. More...

#include <Logger.h>

List of all members.

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 Loggerinstance ()
 returns instance of logger class (-> logger is designed as a singelton)

Detailed Description

singleton class of a Logger that saves events to log.txt.


Member Enumeration Documentation

Enumerator:
Nothing 

if no output is wanted, set the loglevel to Nothing


Member Function Documentation

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)


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