PTLib  Version 2.10.4
PSystemLogToFile Class Reference

Log system output to a file. More...

#include <syslog.h>

Inheritance diagram for PSystemLogToFile:
PSystemLogTarget PObject

List of all members.

Public Member Functions

Construction
 PSystemLogToFile (const PString &filename)
Overrides of PSystemLogTarget
virtual void Output (PSystemLog::Level level, const char *msg)
 Log an error into the system log.
Miscellaneous functions
const PFilePathGetFilePath () const
 Get the path to the file being logged to.

Protected Attributes

PTextFile m_file

Detailed Description

Log system output to a file.


Constructor & Destructor Documentation


Member Function Documentation

const PFilePath& PSystemLogToFile::GetFilePath ( ) const [inline]

Get the path to the file being logged to.

References PFile::GetFilePath(), and m_file.

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

Log an error into the system log.

Parameters:
levelLevel of this message
msgMessage to be logged

Implements PSystemLogTarget.


Member Data Documentation

Referenced by GetFilePath().


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