class PSystemLog

This class abstracts the operating system dependent error logging facility.

Inheritance:


Public Methods

[more] Output functions
[more] Miscellaneous functions

Public Members

[more] Construction


Inherited from PObject:

Public Methods

Run Time Type functions

I/O functions

Public Members

Comparison functions


Documentation

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

oenum Level
define the different error log levels

o StdError
Log from standard error stream

o Fatal
Log a fatal error

o Error
Log a non-fatal error

o Warning
Log a warning

o Info
Log general information

o Debug
Log debugging information

o Debug2
Log more debugging information

o Debug3
Log even more debugging information

o Debug4
Log a lot of debugging information

o Debug5
Log a real lot of debugging information

o Debug6
Log a bucket load of debugging information

o PSystemLog( Level level )
Create a system log stream
Parameters:
level - only messages at this level or higher will be logged

o ~PSystemLog()
Destroy the string stream, deleting the stream buffer

o Output functions

ostatic void Output( Level level, const char* msg )
Log an error into the system log.
Parameters:
level - Log level for this log message.
msg - Message to be logged

o Miscellaneous functions

ovoid SetLevel( Level level )
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

oLevel GetLevel() const
Get the current level for logging.

Returns:
Log level.


This class has no child classes.
Friends:
class Buffer

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.