18 #ifndef _LOG4CXX_NET_SYSLOG_APPENDER_H 19 #define _LOG4CXX_NET_SYSLOG_APPENDER_H 21 #include <log4cxx/appenderskeleton.h> 22 #include <log4cxx/helpers/syslogwriter.h> 25 #pragma warning ( push ) 26 #pragma warning ( disable: 4251 ) 38 BEGIN_LOG4CXX_CAST_MAP()
41 END_LOG4CXX_CAST_MAP()
48 const LogString& syslogHost,
int syslogFacility);
57 static LogString getFacilityString(
int syslogFacility);
67 static int getFacility(
const LogString& facilityName);
76 void setOption(
const LogString& option,
const LogString& value);
93 void setSyslogHost(
const LogString& syslogHost);
111 void setFacility(
const LogString& facilityName);
118 return getFacilityString(syslogFacility);
128 this->facilityPrinting = facilityPrinting1;
136 return facilityPrinting;
140 void initSyslogFacilityStr();
143 LogString facilityStr;
144 bool facilityPrinting;
146 LogString syslogHost;
156 #if defined(_MSC_VER) 157 #pragma warning (pop) 160 #endif // _LOG4CXX_NET_SYSLOG_APPENDER_H const LogString & getSyslogHost() const
Returns the value of the SyslogHost option.
Definition: syslogappender.h:98
Implementation base class for all appenders.
Definition: appenderskeleton.h:45
SyslogWriter is a wrapper around the DatagramSocket class it writes text to the specified host on the...
Definition: syslogwriter.h:39
void setFacilityPrinting(bool facilityPrinting1)
If the FacilityPrinting option is set to true, the printed message will include the facility name of ...
Definition: syslogappender.h:126
bool getFacilityPrinting() const
Returns the value of the FacilityPrinting option.
Definition: syslogappender.h:134
Use SyslogAppender to send log messages to a remote syslog daemon.
Definition: syslogappender.h:34
LogString getFacility() const
Returns the value of the Facility option.
Definition: syslogappender.h:116
virtual bool requiresLayout() const
The SyslogAppender requires a layout.
Definition: syslogappender.h:82
Definition: appender.h:33