PTLib  Version 2.10.4
PSystemLogTarget Class Reference

#include <syslog.h>

Inheritance diagram for PSystemLogTarget:
PObject PSystemLogToFile PSystemLogToNetwork PSystemLogToNowhere PSystemLogToStderr PSystemLogToSyslog

List of all members.

Public Member Functions

Construction
 PSystemLogTarget ()
Miscellaneous functions
void SetThresholdLevel (PSystemLog::Level level)
 Set the level at which errors are logged.
PSystemLog::Level GetThresholdLevel () const
 Get the current level for logging.

Protected Member Functions

Output functions
virtual void Output (PSystemLog::Level level, const char *msg)=0
 Log an error into the system log.
void OutputToStream (ostream &strm, PSystemLog::Level level, const char *msg)
 Log an error into the specified stream.

Protected Attributes

PSystemLog::Level m_thresholdLevel

Constructor & Destructor Documentation


Member Function Documentation

Get the current level for logging.

Returns:
Log level.

References m_thresholdLevel.

Referenced by PServiceProcess::GetLogLevel().

virtual void PSystemLogTarget::Output ( PSystemLog::Level  level,
const char *  msg 
) [protected, pure virtual]

Log an error into the system log.

Parameters:
levelLevel of this message
msgMessage to be logged

Implemented in PSystemLogToSyslog, PSystemLogToNetwork, PSystemLogToFile, PSystemLogToStderr, and PSystemLogToNowhere.

void PSystemLogTarget::OutputToStream ( ostream &  strm,
PSystemLog::Level  level,
const char *  msg 
) [protected]

Log an error into the specified stream.

Parameters:
strmStream to output
levelLevel of this message
msgMessage to be logged

Set the level at which errors are logged.

Only messages higher than or equal to the specified level will be logged.

Parameters:
levelNew log level

References m_thresholdLevel.

Referenced by PServiceProcess::SetLogLevel().


Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines