Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages | Examples

P::SystemLog Class Reference
[Core library]

Application message logging class. More...

#include <plog.h>

List of all members.

Public Member Functions

 SystemLog (const std::string &ident)
 Constructor.

 ~SystemLog ()
const std::string & ident () const
 Returns the application identifier.

void addLogger (Logger *log)
 Add a logger.

bool removeLogger (Logger *log)
 Remove a logger.

void restart ()
 Restart current active loggers.

void enableSubsys (const std::string &name)
 Enable logging of subsystem.

void disableSubsys (const std::string &name)
 Disable logging of subsystem.

SystemLogoperator() (const std::string &subsys, LogLevel l)
 Set subsystem identifier and log message severity for calling thread.

SystemLogoperator() (LogLevel l)
 Set log message severity for calling thread.

const std::list< Logger * > loggers () const

Protected Member Functions

int overflow (int c)


Detailed Description

Application message logging class.

The system logging class can be used to output application log messages on multiple logging targets. To output a log message simply use the stream output operators. The class is thread-safe. It maintains a separate output buffer, subsystem identifier and log message level for each thread.

Author:
Christian Prochnow <cproch@seculogix.de>

Definition at line 92 of file plog.h.


Constructor & Destructor Documentation

P::SystemLog::SystemLog const std::string &  ident  ) 
 

Constructor.

Parameters:
ident Application identifier

P::SystemLog::~SystemLog  ) 
 


Member Function Documentation

void P::SystemLog::addLogger Logger log  ) 
 

Add a logger.

void P::SystemLog::disableSubsys const std::string &  name  ) 
 

Disable logging of subsystem.

void P::SystemLog::enableSubsys const std::string &  name  ) 
 

Enable logging of subsystem.

const std::string& P::SystemLog::ident  )  const [inline]
 

Returns the application identifier.

Definition at line 103 of file plog.h.

const std::list<Logger*> P::SystemLog::loggers  )  const [inline]
 

Definition at line 127 of file plog.h.

SystemLog& P::SystemLog::operator() LogLevel  l  ) 
 

Set log message severity for calling thread.

SystemLog& P::SystemLog::operator() const std::string &  subsys,
LogLevel  l
 

Set subsystem identifier and log message severity for calling thread.

int P::SystemLog::overflow int  c  )  [protected]
 

bool P::SystemLog::removeLogger Logger log  ) 
 

Remove a logger.

void P::SystemLog::restart  ) 
 

Restart current active loggers.


The documentation for this class was generated from the following file:
Generated on Fri Mar 12 21:08:37 2004 for P::Classes by doxygen 1.3.3