MythTV  0.26-pre
Public Member Functions | Private Attributes
SyslogLogger Class Reference

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

#include <logging.h>

Inheritance diagram for SyslogLogger:
LoggerBase

List of all members.

Public Member Functions

 SyslogLogger (int facility)
 SyslogLogger constructor.
 ~SyslogLogger ()
 SyslogLogger deconstructor.
bool logmsg (LoggingItem *item)
 Process a log message, logging to syslog.
void reopen (void)
 Unused for this logger.

Private Attributes

char * m_application
 C-string of the application name.
bool m_opened
 true when syslog channel open.

Detailed Description

Syslog-based logger (not available in Windows)

Definition at line 70 of file libmythbase/logging.h.


Constructor & Destructor Documentation

SyslogLogger constructor.

Parameters:
facilitySyslog facility to use in logging

Definition at line 354 of file logging.cpp.

SyslogLogger deconstructor.

Definition at line 373 of file logging.cpp.


Member Function Documentation

bool SyslogLogger::logmsg ( LoggingItem item) [virtual]

Process a log message, logging to syslog.

Parameters:
itemLoggingItem containing the log message to process

Implements LoggerBase.

Definition at line 383 of file logging.cpp.

void SyslogLogger::reopen ( void  ) [inline, virtual]

Unused for this logger.

Implements LoggerBase.

Definition at line 76 of file libmythbase/logging.h.


Member Data Documentation

char* SyslogLogger::m_application [private]

C-string of the application name.

Definition at line 76 of file libmythbase/logging.h.

Referenced by SyslogLogger(), and ~SyslogLogger().

true when syslog channel open.

Definition at line 79 of file libmythbase/logging.h.

Referenced by logmsg(), and SyslogLogger().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends