|
MythTV master
|
Base class for the various logging mechanisms. More...
#include <libmythbase/loggingserver.h>
Public Member Functions | |
| LoggerBase (const char *string) | |
| LoggerBase Constructor. More... | |
| virtual | ~LoggerBase () |
| LoggerBase Deconstructor. More... | |
| virtual bool | logmsg (LoggingItem *item)=0 |
| Process a log message for the logger instance. More... | |
| virtual void | reopen (void)=0 |
| Reopen the log file to facilitate log rolling. More... | |
Protected Attributes | |
| QString | m_handle |
| semi-opaque handle for identifying instance More... | |
Base class for the various logging mechanisms.
Definition at line 24 of file loggingserver.h.
|
explicit |
LoggerBase Constructor.
LoggerBase class constructor.
Adds the new logger instance to the loggerMap.
| string | a C-string of the handle for this instance (NULL if unused) |
Definition at line 88 of file loggingserver.cpp.
|
virtual |
LoggerBase Deconstructor.
LoggerBase deconstructor.
Removes the logger instance from the loggerMap.
Definition at line 98 of file loggingserver.cpp.
|
pure virtual |
Process a log message for the logger instance.
| item | LoggingItem containing the log message to process |
Implemented in FileLogger.
|
pure virtual |
Reopen the log file to facilitate log rolling.
Implemented in FileLogger.
|
protected |
semi-opaque handle for identifying instance
Definition at line 37 of file loggingserver.h.
Referenced by LoggerBase(), FileLogger::logmsg(), FileLogger::reopen(), FileLogger::~FileLogger(), and ~LoggerBase().