#include <RemoteSyslogAppender.hh>

Public Member Functions | |
| virtual void | close () |
| RemoteSyslogAppender (const std::string &name, const std::string &syslogName, const std::string &relayer, int facility=LOG_USER, int portNumber=514) | |
| virtual bool | reopen () |
| virtual | ~RemoteSyslogAppender () |
Public Member Functions inherited from log4cpp::LayoutAppender | |
| LayoutAppender (const std::string &name) | |
| virtual bool | requiresLayout () const |
| virtual void | setLayout (Layout *layout=NULL) |
| virtual | ~LayoutAppender () |
Public Member Functions inherited from log4cpp::AppenderSkeleton | |
| virtual void | doAppend (const LoggingEvent &event) |
| virtual Filter * | getFilter () |
| virtual Priority::Value | getThreshold () |
| virtual void | setFilter (Filter *filter) |
| virtual void | setThreshold (Priority::Value priority) |
| virtual | ~AppenderSkeleton () |
Public Member Functions inherited from log4cpp::Appender | |
| const std::string & | getName () const |
| virtual | ~Appender () |
Static Public Member Functions | |
| static int | toSyslogPriority (Priority::Value priority) |
Static Public Member Functions inherited from log4cpp::Appender | |
| static void | closeAll () |
| static Appender * | getAppender (const std::string &name) |
| static bool | reopenAll () |
Protected Member Functions | |
| virtual void | _append (const LoggingEvent &event) |
| virtual void | open () |
Protected Member Functions inherited from log4cpp::LayoutAppender | |
| Layout & | _getLayout () |
Protected Member Functions inherited from log4cpp::AppenderSkeleton | |
| AppenderSkeleton (const std::string &name) | |
Protected Member Functions inherited from log4cpp::Appender | |
| Appender (const std::string &name) | |
Protected Attributes | |
| int | _facility |
| in_addr_t | _ipAddr |
| int | _portNumber |
| const std::string | _relayer |
| int | _socket |
| const std::string | _syslogName |
Private Attributes | |
| int | _cludge |
Additional Inherited Members | |
Public Types inherited from log4cpp::LayoutAppender | |
| typedef BasicLayout | DefaultLayoutType |
RemoteSyslogAppender sends LoggingEvents to a remote syslog system.
Also see: draft-ietf-syslog-syslog-12.txt
Definition at line 72 of file RemoteSyslogAppender.hh.
| log4cpp::RemoteSyslogAppender::RemoteSyslogAppender | ( | const std::string & | name, |
| const std::string & | syslogName, | ||
| const std::string & | relayer, | ||
| int | facility = LOG_USER, |
||
| int | portNumber = 514 |
||
| ) |
Instantiate a RemoteSyslogAppender with given name and name and facility for syslog.
| name | The name of the Appender |
| syslogName | The ident parameter in the openlog(3) call. |
| relayer | The IP address or hostname of a standard syslog host. |
| facility | The syslog facility to log to. Defaults to LOG_USER. Value '-1' implies to use the default. |
| portNumber | An alternative port number. Defaults to the standard syslog port number (514). Value '-1' implies to use the default. |
Definition at line 57 of file RemoteSyslogAppender.cpp.
|
virtual |
Definition at line 74 of file RemoteSyslogAppender.cpp.
|
protectedvirtual |
Sends a LoggingEvent to the remote syslog.
| event | the LoggingEvent to log. |
Implements log4cpp::AppenderSkeleton.
Definition at line 135 of file RemoteSyslogAppender.cpp.
|
virtual |
Closes the socket
Implements log4cpp::AppenderSkeleton.
Definition at line 124 of file RemoteSyslogAppender.cpp.
|
protectedvirtual |
Just creates the socket.
Definition at line 84 of file RemoteSyslogAppender.cpp.
|
virtual |
Closes and reopens the socket.
Reimplemented from log4cpp::AppenderSkeleton.
Definition at line 166 of file RemoteSyslogAppender.cpp.
|
static |
Translates a log4cpp priority to a syslog priority
| priority | The log4cpp priority. |
Definition at line 36 of file RemoteSyslogAppender.cpp.
|
private |
Definition at line 135 of file RemoteSyslogAppender.hh.
|
protected |
Definition at line 126 of file RemoteSyslogAppender.hh.
|
protected |
Definition at line 133 of file RemoteSyslogAppender.hh.
|
protected |
Definition at line 127 of file RemoteSyslogAppender.hh.
|
protected |
Definition at line 125 of file RemoteSyslogAppender.hh.
|
protected |
Definition at line 131 of file RemoteSyslogAppender.hh.
|
protected |
Definition at line 124 of file RemoteSyslogAppender.hh.