#include <SyslogAppender.hh>
Inheritance diagram for log4cpp::SyslogAppender:
Public Methods | |
SyslogAppender (const std::string &name, const std::string &syslogName, int facility=LOG_USER) | |
Instantiate a SyslogAppender with given name and name and facility for syslog. More... | |
virtual | ~SyslogAppender () |
virtual bool | reopen () |
Calls closelog(3) and openlog(3). More... | |
virtual void | close () |
Calls closelog(3) to close the syslog file descriptor. More... | |
Static Public Methods | |
int | toSyslogPriority (Priority::Value priority) |
Translates a log4cpp priority to a syslog priority. More... | |
Protected Methods | |
virtual void | open () |
Calls openlog(3). More... | |
virtual void | _append (const LoggingEvent &event) |
Sends a LoggingEvent to syslog. More... | |
Protected Attributes | |
const std::string | _syslogName |
int | _facility |
|
Instantiate a SyslogAppender with given name and name and facility for syslog. Note that the C syslog API is process global, so instantion of a second SyslogAppender will 'overwrite' the syslog name of the first.
|
|
|
|
Sends a LoggingEvent to syslog.
Implements log4cpp::AppenderSkeleton. |
|
Calls closelog(3) to close the syslog file descriptor.
Implements log4cpp::AppenderSkeleton. |
|
Calls openlog(3).
|
|
Calls closelog(3) and openlog(3).
Reimplemented from log4cpp::AppenderSkeleton. |
|
Translates a log4cpp priority to a syslog priority.
|
|
|
|
|