|
Apache Log4cxx
Version 1.5.0
|
Go to the documentation of this file.
18 #ifndef _LOG4CXX_NET_SYSLOG_APPENDER_H
19 #define _LOG4CXX_NET_SYSLOG_APPENDER_H
55 const
LogString& syslogHost,
int syslogFacility);
58 void close() override;
64 static
LogString getFacilityString(
int syslogFacility);
74 static
int getFacility(const
LogString& facilityName);
83 void activateOptions(helpers::Pool& p) override;
106 bool requiresLayout()
const override
159 struct SyslogAppenderPriv;
167 #endif // _LOG4CXX_NET_SYSLOG_APPENDER_H
void setSyslogHost(const LogString &syslogHost)
The SyslogHost option is the name of the the syslog host where log output should go.
LOG4CXX_PTR_DEF(SyslogAppender)
std::basic_string< logchar > LogString
Definition: logstring.h:60
void initSyslogFacilityStr()
Use SyslogAppender to send log messages to a remote syslog daemon.
Definition: syslogappender.h:42
bool getFacilityPrinting() const
Returns the value of the FacilityPrinting option.
#define BEGIN_LOG4CXX_CAST_MAP()
Definition: object.h:146
const LogString & getSyslogHost() const
Returns the value of the SyslogHost option.
#define DECLARE_LOG4CXX_OBJECT(object)
Definition: object.h:43
#define END_LOG4CXX_CAST_MAP()
Definition: object.h:152
std::shared_ptr< LoggingEvent > LoggingEventPtr
Definition: appender.h:31
LogString getFacility() const
Returns the value of the Facility option.
std::shared_ptr< Layout > LayoutPtr
Definition: appender.h:41
int getMaxMessageLength() const
void setMaxMessageLength(int maxMessageLength1)
Implementation base class for all appenders.
Definition: appenderskeleton.h:41
#define LOG4CXX_CAST_ENTRY_CHAIN(Interface)
Definition: object.h:164
void setFacility(const LogString &facilityName)
Set the syslog facility.
void setFacilityPrinting(bool facilityPrinting1)
If the FacilityPrinting option is set to true, the printed message will include the facility name of ...
#define LOG4CXX_CAST_ENTRY(Interface)
Definition: object.h:158