18#ifndef _LOG4CXX_NET_SYSLOG_APPENDER_H
19#define _LOG4CXX_NET_SYSLOG_APPENDER_H
55 const
LogString& syslogHost,
int syslogFacility);
159 struct SyslogAppenderPriv;
AppenderSkeleton(LOG4CXX_PRIVATE_PTR(AppenderSkeletonPrivate) priv)
Use SyslogAppender to send log messages to a remote syslog daemon.
Definition syslogappender.h:42
const LogString & getSyslogHost() const
Returns the value of the SyslogHost option.
void setMaxMessageLength(int maxMessageLength1)
bool requiresLayout() const override
The SyslogAppender requires a layout.
Definition syslogappender.h:106
void activateOptions(helpers::Pool &p) override
Activate the options that were previously set with calls to option setters.
void append(const spi::LoggingEventPtr &event, helpers::Pool &p) override
Subclasses of AppenderSkeleton should implement this method to perform actual logging.
void initSyslogFacilityStr()
void setFacility(const LogString &facilityName)
Set the syslog facility.
void close() override
Release any resources held by this SyslogAppender.
void setFacilityPrinting(bool facilityPrinting1)
If the FacilityPrinting option is set to true, the printed message will include the facility name of ...
bool getFacilityPrinting() const
Returns the value of the FacilityPrinting option.
void setOption(const LogString &option, const LogString &value) override
Set option to value.
void setSyslogHost(const LogString &syslogHost)
The SyslogHost option is the name of the the syslog host where log output should go.
int getMaxMessageLength() const
static LogString getFacilityString(int syslogFacility)
Returns the specified syslog facility as a lower-case String, e.g.
LogString getFacility() const
Returns the value of the Facility option.
static int getFacility(const LogString &facilityName)
Returns the integer value corresponding to the named syslog facility, or -1 if it couldn't be recogni...
Definition propertysetter.h:27
LOG4CXX_PTR_DEF(SMTPAppender)
std::basic_string< logchar > LogString
Definition logstring.h:60
std::shared_ptr< Layout > LayoutPtr
Definition appender.h:42
#define LOG4CXX_CAST_ENTRY(Interface)
Definition object.h:158
#define END_LOG4CXX_CAST_MAP()
Definition object.h:152
#define DECLARE_LOG4CXX_OBJECT(object)
Definition object.h:43
#define LOG4CXX_CAST_ENTRY_CHAIN(Interface)
Definition object.h:164
#define BEGIN_LOG4CXX_CAST_MAP()
Definition object.h:146