#include <SyslogAppender.hh>
Inheritance diagram for log4cpp::SyslogAppender:


Public Member Functions | |
| 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. | |
| virtual | ~SyslogAppender () |
| virtual bool | reopen () |
| Calls closelog(3) and openlog(3). | |
| virtual void | close () |
| Calls closelog(3) to close the syslog file descriptor. | |
Static Public Member Functions | |
| static int | toSyslogPriority (Priority::Value priority) |
| Translates a log4cpp priority to a syslog priority. | |
Protected Member Functions | |
| virtual void | open () |
| Calls openlog(3). | |
| virtual void | _append (const LoggingEvent &event) |
| Sends a LoggingEvent to syslog. | |
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.
|
|
|
|
|
|
|
1.4.2