MythTV master
Public Member Functions | Protected Attributes | List of all members
LoggerBase Class Referenceabstract

Base class for the various logging mechanisms. More...

#include <libmythbase/loggingserver.h>

Inheritance diagram for LoggerBase:
[legend]

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...
 

Detailed Description

Base class for the various logging mechanisms.

Definition at line 24 of file loggingserver.h.

Constructor & Destructor Documentation

◆ LoggerBase()

LoggerBase::LoggerBase ( const char *  string)
explicit

LoggerBase Constructor.

LoggerBase class constructor.

Adds the new logger instance to the loggerMap.

Parameters
stringa C-string of the handle for this instance (NULL if unused)

Definition at line 88 of file loggingserver.cpp.

◆ ~LoggerBase()

LoggerBase::~LoggerBase ( )
virtual

LoggerBase Deconstructor.

LoggerBase deconstructor.

Removes the logger instance from the loggerMap.

Definition at line 98 of file loggingserver.cpp.

Member Function Documentation

◆ logmsg()

virtual bool LoggerBase::logmsg ( LoggingItem item)
pure virtual

Process a log message for the logger instance.

Parameters
itemLoggingItem containing the log message to process

Implemented in FileLogger.

◆ reopen()

virtual void LoggerBase::reopen ( void  )
pure virtual

Reopen the log file to facilitate log rolling.

Implemented in FileLogger.

Member Data Documentation

◆ m_handle

QString LoggerBase::m_handle
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().


The documentation for this class was generated from the following files: