#include <RemoteSyslogAppender.hh>
Inheritance diagram for log4cpp::RemoteSyslogAppender:
Public Methods | |
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. More... | |
virtual | ~RemoteSyslogAppender () |
virtual bool | reopen () |
Closes and reopens the socket. More... | |
virtual void | close () |
Closes the socket. More... | |
Static Public Methods | |
int | toSyslogPriority (Priority::Value priority) |
Translates a log4cpp priority to a syslog priority. More... | |
Protected Methods | |
virtual void | open () |
Just creates the socket. More... | |
virtual void | _append (const LoggingEvent &event) |
Sends a LoggingEvent to the remote syslog. More... | |
Protected Attributes | |
const std::string | _syslogName |
const std::string | _relayer |
int | _facility |
int | _portNumber |
int | _socket |
unsigned long | _ipAddr |
Also see: draft-ietf-syslog-syslog-12.txt
|
Instantiate a RemoteSyslogAppender with given name and name and facility for syslog.
|
|
|
|
Sends a LoggingEvent to the remote syslog.
Implements log4cpp::AppenderSkeleton. |
|
Closes the socket.
Implements log4cpp::AppenderSkeleton. |
|
Just creates the socket.
|
|
Closes and reopens the socket.
Reimplemented from log4cpp::AppenderSkeleton. |
|
Translates a log4cpp priority to a syslog priority.
|
|
|
|
|
|
|
|
|
|
|
|
|