#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). | |
| virtual void | close () |
| Calls closelog(3) to close the syslog file descriptor. | |
| virtual bool | requiresLayout () const |
| The SyslogAppender requires a Layout. More... | |
| virtual void | setLayout (Layout *layout) |
| Set the Layout for this appender. 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). | |
| virtual void | _append (const LoggingEvent &event) |
| Sends a LoggingEvent to syslog. More... | |
Protected Attributes | |
| const std::string | _syslogName |
| int | _facility |
| Layout* | _layout |
|
|
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.
Reimplemented from log4cpp::AppenderSkeleton. |
|
|
Calls closelog(3) to close the syslog file descriptor.
Reimplemented from log4cpp::AppenderSkeleton. |
|
|
Calls openlog(3).
|
|
|
Calls closelog(3) and openlog(3).
Reimplemented from log4cpp::AppenderSkeleton. |
|
|
The SyslogAppender requires a Layout.
Reimplemented from log4cpp::AppenderSkeleton. |
|
|
Set the Layout for this appender.
Reimplemented from log4cpp::AppenderSkeleton. |
|
|
Translates a log4cpp priority to a syslog priority.
|
|
|
|
|
|
|
|
|
|
1.2.6 written by Dimitri van Heesch,
© 1997-2001