#include <syslog.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. | |
Static Public Member Functions | |
Miscellaneous functions | |
| static PSystemLogTarget & | GetTarget () |
| Get the current target/destination for system logging. | |
| static void | SetTarget (PSystemLogTarget *target, bool autoDelete=true) |
| Set the current target/destination for system logging. | |
To send messages to the system error log, the PSYSTEMLOG macro should be used.
| enum PSystemLog::Level |
define the different error log levels
| PSystemLog::PSystemLog | ( | Level | level | ) |
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 PSystemLogTarget& PSystemLog::GetTarget | ( | ) | [static] |
Get the current target/destination for system logging.
| static void PSystemLog::SetTarget | ( | PSystemLogTarget * | target, | |
| bool | autoDelete = true | |||
| ) | [static] |
Set the current target/destination for system logging.
| target | New target/destination for logging. |
| autoDelete | Indicate target is to be deleted when no longer in use. |
1.4.7