OpenStructure
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions
Logger Class Reference

#include <log.hh>

Public Types

enum  LogLevel {
  QUIET = 0, WARNING = 1, SCRIPT = 2, INFO = 3,
  VERBOSE = 4, DEBUG = 5, TRACE = 6
}

Public Member Functions

void PushVerbosityLevel (int level)
void PopVerbosityLevel ()
void PushSink (LogSinkPtr &sink)
void PushFile (const String &filename)
void PopFile ()
void PopSink ()
LogSinkPtr GetCurrentSink ()
int GetVerbosityLevel () const
void ResetSinks ()

Static Public Member Functions

static LoggerInstance ()

Protected Member Functions

 Logger ()
 Logger (const Logger &)
Loggeroperator= (const Logger &)

Detailed Description

Definition at line 33 of file log.hh.


Member Enumeration Documentation

enum LogLevel
Enumerator:
QUIET 
WARNING 
SCRIPT 
INFO 
VERBOSE 
DEBUG 
TRACE 

Definition at line 35 of file log.hh.


Constructor & Destructor Documentation

Logger ( )
protected
Logger ( const Logger )
protected

Member Function Documentation

LogSinkPtr GetCurrentSink ( )
inline

Definition at line 54 of file log.hh.

int GetVerbosityLevel ( ) const
inline

Definition at line 55 of file log.hh.

static Logger& Instance ( )
static
Logger& operator= ( const Logger )
protected
void PopFile ( )

DEPRECATED use PopSink() instead.

void PopSink ( )
void PopVerbosityLevel ( )
void PushFile ( const String filename)
void PushSink ( LogSinkPtr sink)
void PushVerbosityLevel ( int  level)
void ResetSinks ( )
inline

Definition at line 57 of file log.hh.


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