18#ifndef _LOG4CXX_NET_SYSLOG_APPENDER_H
19#define _LOG4CXX_NET_SYSLOG_APPENDER_H
70 const
LogString& syslogHost,
int syslogFacility);
89 void append( const
spi::LoggingEventPtr& event ) override;
209 struct SyslogAppenderPriv;
AppenderSkeleton(LOG4CXX_PRIVATE_PTR(AppenderSkeletonPrivate) priv)
Use SyslogAppender to send log messages to a remote syslog daemon.
Definition syslogappender.h:57
const LogString & getSyslogHost() const
Returns the value of the SyslogHost option.
void append(const spi::LoggingEventPtr &event) override
Subclasses of AppenderSkeleton must implement this method to perform actual logging.
void setMaxMessageLength(int maxMessageLength1)
void setFormat(const LogString &format)
Set the format of messages sent to a remote syslog daemon.
void initSyslogFacilityStr()
void setAppName(const LogString &appName)
Set the APP-NAME field of messages in the RFC5424 format.
void setFacility(const LogString &facilityName)
Set the syslog facility.
const LogString & getMessageId() const
Returns the value of the MessageId option.
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.
const LogString & getAppName() const
Returns the value of the AppName option.
void setOption(const LogString &option, const LogString &value) override
Override this method to set option to value.
void setMessageId(const LogString &messageId)
Set the MSGID field of messages in the RFC5424 format.
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.
static int getFacility(const LogString &facilityName)
Returns the integer value corresponding to the named syslog facility, or -1 if it couldn't be recogni...
LogString getFormat() const
Returns the value of the Format option, either "BSD" or "RFC5424".
LOG4CXX_PTR_DEF(JSONSocketAppender)
std::basic_string< logchar > LogString
Definition logstring.h:51
std::shared_ptr< Layout > LayoutPtr
Definition appender.h:42
#define LOG4CXX_CAST_ENTRY(Interface)
Definition object.h:153
#define END_LOG4CXX_CAST_MAP()
Definition object.h:147
#define DECLARE_LOG4CXX_OBJECT(object)
Definition object.h:41
#define LOG4CXX_CAST_ENTRY_CHAIN(Interface)
Definition object.h:159
#define BEGIN_LOG4CXX_CAST_MAP()
Definition object.h:141