PSystemLog Class Reference

#include <svcproc.h>

Inheritance diagram for PSystemLog:
PObject

List of all members.

Public Member Functions

Miscellaneous functions



void SetLevel (Level level)
Level GetLevel () const

Static Public Member Functions

Output functions



static void Output (Level level, const char *msg)

Friends

class Buffer

Construction



enum  Level {
  StdError = -1, Fatal, Error, Warning,
  Info, Debug, Debug2, Debug3,
  Debug4, Debug5, Debug6, NumLogLevels
}
 

define the different error log levels

More...
 PSystemLog (Level level)
 Create a system log stream.
 ~PSystemLog ()
 Destroy the string stream, deleting the stream buffer.

Detailed Description

This class abstracts the operating system dependent error logging facility. To send messages to the system error log, the PSYSTEMLOG macro should be used.


Member Enumeration Documentation

define the different error log levels

Enumerator:
StdError 

Log from standard error stream.

Fatal 

Log a fatal error.

Error 

Log a non-fatal error.

Warning 

Log a warning.

Info 

Log general information.

Debug 

Log debugging information.

Debug2 

Log more debugging information.

Debug3 

Log even more debugging information.

Debug4 

Log a lot of debugging information.

Debug5 

Log a real lot of debugging information.

Debug6 

Log a bucket load of debugging information.

NumLogLevels 

Constructor & Destructor Documentation

PSystemLog::PSystemLog ( Level  level  )  [inline]

Create a system log stream.

Parameters:
level only messages at this level or higher will be logged
PSystemLog::~PSystemLog (  )  [inline]

Destroy the string stream, deleting the stream buffer.


Member Function Documentation

Level PSystemLog::GetLevel (  )  const [inline]

Get the current level for logging.

Returns:
Log level.
static void PSystemLog::Output ( Level  level,
const char *  msg 
) [static]

Log an error into the system log.

Parameters:
level Log level for this log message.
msg Message to be logged
void PSystemLog::SetLevel ( Level  level  )  [inline]

Set the level at which errors are logged. Only messages higher than or equal to the specified level will be logged.

Parameters:
level New log level

Friends And Related Function Documentation

friend class Buffer [friend]

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

Generated on Sun Sep 6 03:50:38 2009 for PWLib by  doxygen 1.6.1