#include <log.hh>
Inheritance diagram for Qmms::Log::SyslogAppender::
Public Methods | |
SyslogAppender () | |
Default constructor does nothing. More... | |
SyslogAppender (const QString &name, int fac=LOG_USER) | |
Constructor to be used in PropertyConfigurator. More... | |
SyslogAppender (const QString &name, const QString &syslogName, int fac=LOG_USER) | |
Full constructor. More... | |
virtual | ~SyslogAppender () |
Destructor. More... | |
void | setSyslogName (const QString &str) |
Explicitly sets syslogName. More... | |
QString | getSyslogName () const |
Accessor method. More... | |
int | getFacility () const |
Accessor method. More... | |
void | subAppend (LoggingEvent *evnt) |
Logs event immediately with no further checks. More... | |
Static Public Methods | |
int | toSyslogLevel (QString p) |
Maps a qmmslog loglevel to a syslog level by the following: 8 - getValue(p) / 100. More... | |
Protected Methods | |
virtual void | open () |
Calls openlog(). More... | |
virtual void | close () |
Calls closelog();. More... | |
virtual bool | reopen () |
Calls close(), then open(). More... | |
Protected Attributes | |
QString | syslogName |
The ident parameter to be sent to openlog(). More... | |
int | facility |
The syslog facility, i.e., the type of program logging the message. More... | |
Layout * | layout |
The Layout to use with this Appender. More... | |
Static Protected Attributes | |
const int | loglevels [8] |
The list of syslog levels: <. More... |
|
Default constructor does nothing.
|
|
Constructor to be used in PropertyConfigurator. syslogName must be set explicitly. facility is set to LOG_USER.
|
|
Full constructor.
|
|
Destructor. Calls close(). |
|
Calls closelog();.
Reimplemented from Qmms::Log::Appender. |
|
Accessor method.
|
|
Accessor method.
|
|
Calls openlog().
|
|
|
|
Explicitly sets syslogName. Meant to be used by PropertyConfigurator since syslogName is read from a different line from that which creates the Appender.
|
|
Logs event immediately with no further checks. Calls syslog().
Reimplemented from Qmms::Log::LayoutAppender. |
|
Maps a qmmslog loglevel to a syslog level by the following: 8 - getValue(p) / 100.
|
|
The syslog facility, i.e., the type of program logging the message. Can be any one of the following: LOG_AUTH, LOG_AUTHPRIV, LOG_CRON, LOG_DAEMON, LOG_FTP, LOG_KERN, LOG_LOCAL0 through LOG_LOCAL7, LOG_LPR, LOG_MAIL, LOG_NEWS, LOG_SYSLOG, LOG_USER (default), LOG_UUCP. |
|
The Layout to use with this Appender.
Reimplemented from Qmms::Log::LayoutAppender. |
|
The list of syslog levels: <. p> LOG_EMERG, LOG_ALERT, LOG_CRIT, LOG_ERR, LOG_WARNING, LOG_NOTICE, LOG_INFO, LOG_DEBUG |
|
The ident parameter to be sent to openlog(). Usually the name of the program. |