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
Collaboration diagram for SyslogLogger:
Collaboration graph

Public Member Functions

 SyslogLogger ()
 SyslogLogger (bool open)
 ~SyslogLogger () override
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...
 ~LoggerBase () override
 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)

◆ ~SyslogLogger()

SyslogLogger::~SyslogLogger ( )

Member Function Documentation

◆ logmsg()

bool SyslogLogger::logmsg ( LoggingItem item)

Process a log message for the logger instance.

itemLoggingItem containing the log message to process

Implements LoggerBase.

◆ reopen()

void SyslogLogger::reopen ( void  )

Unused for this logger.

Implements LoggerBase.

Definition at line 74 of file loggingserver.h.

◆ create()

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

Member Data Documentation

◆ m_opened

bool SyslogLogger::m_opened {false}

true when syslog channel open.

Definition at line 77 of file loggingserver.h.

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