PTLib
Version 2.10.4
|
Log system output to a file. More...
#include <syslog.h>
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 PFilePath & | GetFilePath () const |
Get the path to the file being logged to. | |
Protected Attributes | |
PTextFile | m_file |
Log system output to a file.
PSystemLogToFile::PSystemLogToFile | ( | const PString & | filename | ) |
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.
level | Level of this message |
msg | Message to be logged |
Implements PSystemLogTarget.
PTextFile PSystemLogToFile::m_file [protected] |
Referenced by GetFilePath().