#include <svcproc.h>
Inheritance diagram for PSystemLog:

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. | |
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 |
| enum PSystemLog::Level |
define the different error log levels
| PSystemLog::PSystemLog | ( | Level | level | ) | [inline] |
Create a system log stream.
| level | only messages at this level or higher will be logged |
| PSystemLog::~PSystemLog | ( | ) | [inline] |
Destroy the string stream, deleting the stream buffer.
| static void PSystemLog::Output | ( | Level | level, | |
| const char * | msg | |||
| ) | [static] |
Log an error into the system log.
| 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.
| level | New log level |
| Level PSystemLog::GetLevel | ( | ) | const [inline] |
Get the current level for logging.
friend class Buffer [friend] |
1.5.1