#include <syslog.h>
Inheritance diagram for PSystemLogToFile:
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 |
PSystemLogToFile::PSystemLogToFile | ( | const PString & | filename | ) |
const PFilePath& PSystemLogToFile::GetFilePath | ( | ) | const [inline] |
Get the path to the file being logged to.
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] |