log4cpp::RemoteSyslogAppender Class Reference

#include <RemoteSyslogAppender.hh>

Inheritance diagram for log4cpp::RemoteSyslogAppender:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void close ()
virtual void close ()
 RemoteSyslogAppender (const std::string &name, const std::string &syslogName, const std::string &relayer, int facility=LOG_USER, int portNumber=514)
 RemoteSyslogAppender (const std::string &name, const std::string &syslogName, const std::string &relayer, int facility=LOG_USER, int portNumber=514)
virtual bool reopen ()
virtual bool reopen ()
virtual ~RemoteSyslogAppender ()
virtual ~RemoteSyslogAppender ()

Static Public Member Functions

static int toSyslogPriority (Priority::Value priority)
static int toSyslogPriority (Priority::Value priority)

Protected Member Functions

virtual void _append (const LoggingEvent &event)
virtual void _append (const LoggingEvent &event)
virtual void open ()
virtual void open ()

Protected Attributes

int _facility
in_addr_t _ipAddr
int _portNumber
const std::string _relayer
int _socket
const std::string _syslogName

Private Attributes

int _cludge

Detailed Description

RemoteSyslogAppender sends LoggingEvents to a remote syslog system.

Also see: draft-ietf-syslog-syslog-12.txt

Definition at line 72 of file include/log4cpp/RemoteSyslogAppender.hh.


Constructor & Destructor Documentation

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.

Parameters:
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.

log4cpp::RemoteSyslogAppender::~RemoteSyslogAppender (  )  [virtual]

Definition at line 74 of file RemoteSyslogAppender.cpp.

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.

Parameters:
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.
virtual log4cpp::RemoteSyslogAppender::~RemoteSyslogAppender (  )  [virtual]

Member Function Documentation

virtual void log4cpp::RemoteSyslogAppender::_append ( const LoggingEvent event  )  [protected, virtual]

Sends a LoggingEvent to the remote syslog.

Parameters:
event the LoggingEvent to log.

Implements log4cpp::AppenderSkeleton.

void log4cpp::RemoteSyslogAppender::_append ( const LoggingEvent event  )  [protected, virtual]

Sends a LoggingEvent to the remote syslog.

Parameters:
event the LoggingEvent to log.

Implements log4cpp::AppenderSkeleton.

Definition at line 135 of file RemoteSyslogAppender.cpp.

virtual void log4cpp::RemoteSyslogAppender::close (  )  [virtual]

Closes the socket

Implements log4cpp::AppenderSkeleton.

void log4cpp::RemoteSyslogAppender::close (  )  [virtual]

Closes the socket

Implements log4cpp::AppenderSkeleton.

Definition at line 124 of file RemoteSyslogAppender.cpp.

virtual void log4cpp::RemoteSyslogAppender::open (  )  [protected, virtual]

Just creates the socket.

void log4cpp::RemoteSyslogAppender::open (  )  [protected, virtual]

Just creates the socket.

Definition at line 84 of file RemoteSyslogAppender.cpp.

virtual bool log4cpp::RemoteSyslogAppender::reopen (  )  [virtual]

Closes and reopens the socket.

Reimplemented from log4cpp::AppenderSkeleton.

bool log4cpp::RemoteSyslogAppender::reopen (  )  [virtual]

Closes and reopens the socket.

Reimplemented from log4cpp::AppenderSkeleton.

Definition at line 166 of file RemoteSyslogAppender.cpp.

static int log4cpp::RemoteSyslogAppender::toSyslogPriority ( Priority::Value  priority  )  [static]

Translates a log4cpp priority to a syslog priority

Parameters:
priority The log4cpp priority.
Returns:
the syslog priority.
int log4cpp::RemoteSyslogAppender::toSyslogPriority ( Priority::Value  priority  )  [static]

Translates a log4cpp priority to a syslog priority

Parameters:
priority The log4cpp priority.
Returns:
the syslog priority.

Definition at line 36 of file RemoteSyslogAppender.cpp.


Member Data Documentation

Definition at line 135 of file include/log4cpp/RemoteSyslogAppender.hh.

Definition at line 126 of file include/log4cpp/RemoteSyslogAppender.hh.

Definition at line 133 of file include/log4cpp/RemoteSyslogAppender.hh.

Definition at line 127 of file include/log4cpp/RemoteSyslogAppender.hh.

const std::string log4cpp::RemoteSyslogAppender::_relayer [protected]

Definition at line 125 of file include/log4cpp/RemoteSyslogAppender.hh.

Definition at line 131 of file include/log4cpp/RemoteSyslogAppender.hh.

const std::string log4cpp::RemoteSyslogAppender::_syslogName [protected]

Definition at line 124 of file include/log4cpp/RemoteSyslogAppender.hh.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


log4cpp
Author(s): Stephen Roderick
autogenerated on Fri Jan 11 09:51:55 2013