MythTV  master
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
SyslogLogger Class Reference

Syslog-based logger (not available in Windows) More...

#include <loggingserver.h>

Inheritance diagram for SyslogLogger:
Inheritance graph
[legend]
Collaboration diagram for SyslogLogger:
Collaboration graph
[legend]

Public Member Functions

 SyslogLogger ()
 
 SyslogLogger (bool open)
 
 ~SyslogLogger ()
 
bool logmsg (LoggingItem *item) override
 Process a log message for the logger instance. More...
 
void reopen (void) override
 Unused for this logger. More...
 
- Public Member Functions inherited from LoggerBase
 LoggerBase (const char *string)
 LoggerBase Constructor. More...
 
virtual ~LoggerBase ()
 LoggerBase Deconstructor. More...
 
virtual void stopDatabaseAccess (void)
 Stop logging to the database. More...
 

Static Public Member Functions

static SyslogLoggercreate (QMutex *mutex, bool open=true)
 

Private Attributes

bool m_opened {false}
 true when syslog channel open. More...
 

Additional Inherited Members

- Protected Attributes inherited from LoggerBase
char * m_handle {nullptr}
 semi-opaque handle for identifying instance More...
 

Detailed Description

Syslog-based logger (not available in Windows)

Definition at line 64 of file loggingserver.h.

Constructor & Destructor Documentation

◆ SyslogLogger() [1/2]

SyslogLogger::SyslogLogger ( )

◆ SyslogLogger() [2/2]

SyslogLogger::SyslogLogger ( bool  open)
explicit

◆ ~SyslogLogger()

SyslogLogger::~SyslogLogger ( )

Member Function Documentation

◆ logmsg()

bool SyslogLogger::logmsg ( LoggingItem item)
overridevirtual

Process a log message for the logger instance.

Parameters
itemLoggingItem containing the log message to process

Implements LoggerBase.

◆ reopen()

void SyslogLogger::reopen ( void  )
inlineoverridevirtual

Unused for this logger.

Implements LoggerBase.

Definition at line 74 of file loggingserver.h.

◆ create()

static SyslogLogger* SyslogLogger::create ( QMutex *  mutex,
bool  open = true 
)
static

Member Data Documentation

◆ m_opened

bool SyslogLogger::m_opened {false}
private

true when syslog channel open.

Definition at line 77 of file loggingserver.h.


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