This class abstracts the operating system dependent error logging facility.
Inheritance:
Public Methods
| Output functions
|
| Miscellaneous functions
|
Public Members
| 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.
Construction
enum Level
- define the different error log levels
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
PSystemLog( Level level )
- Create a system log stream
- Parameters:
- level - only messages at this level or higher will be logged
~PSystemLog()
- Destroy the string stream, deleting the stream buffer
Output functions
static 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
Miscellaneous functions
void 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
Level 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++.