OpenStructure
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

◆ LogLevel

enum LogLevel
Enumerator
QUIET 
WARNING 
SCRIPT 
INFO 
VERBOSE 
DEBUG 
TRACE 

Definition at line 35 of file log.hh.

Constructor & Destructor Documentation

◆ Logger() [1/2]

Logger ( )
protected

◆ Logger() [2/2]

Logger ( const Logger )
protected

Member Function Documentation

◆ GetCurrentSink()

LogSinkPtr GetCurrentSink ( )
inline

Definition at line 54 of file log.hh.

◆ GetVerbosityLevel()

int GetVerbosityLevel ( ) const
inline

Definition at line 55 of file log.hh.

◆ Instance()

static Logger& Instance ( )
static

◆ operator=()

Logger& operator= ( const Logger )
protected

◆ PopFile()

void PopFile ( )

DEPRECATED use PopSink() instead.

◆ PopSink()

void PopSink ( )

◆ PopVerbosityLevel()

void PopVerbosityLevel ( )

◆ PushFile()

void PushFile ( const String filename)

◆ PushSink()

void PushSink ( LogSinkPtr sink)

◆ PushVerbosityLevel()

void PushVerbosityLevel ( int  level)

◆ ResetSinks()

void ResetSinks ( )
inline

Definition at line 57 of file log.hh.


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