Logger Class Reference

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)

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:
Generated on Mon Dec 6 14:15:25 2010 for 3D Volume Visualization by  doxygen 1.6.3