18 #ifndef _LOG4CXX_NET_SYSLOG_APPENDER_H 19 #define _LOG4CXX_NET_SYSLOG_APPENDER_H 25 #pragma warning ( push ) 26 #pragma warning ( disable: 4251 ) 60 const LogString& syslogHost,
int syslogFacility);
69 static LogString getFacilityString(
int syslogFacility);
79 static int getFacility(
const LogString& facilityName);
105 void setSyslogHost(
const LogString& syslogHost);
123 void setFacility(
const LogString& facilityName);
130 return getFacilityString(syslogFacility);
140 this->facilityPrinting = facilityPrinting1;
148 return facilityPrinting;
153 maxMessageLength = maxMessageLength1;
158 return maxMessageLength;
162 void initSyslogFacilityStr();
179 #if defined(_MSC_VER) 180 #pragma warning (pop) 183 #endif // _LOG4CXX_NET_SYSLOG_APPENDER_H LogString syslogHost
Definition: syslogappender.h:168
#define LOG4CXX_CAST_ENTRY(Interface)
Definition: object.h:148
bool facilityPrinting
Definition: syslogappender.h:166
const LogString & getSyslogHost() const
Returns the value of the SyslogHost option.
Definition: syslogappender.h:110
#define END_LOG4CXX_CAST_MAP()
Definition: object.h:142
Implementation base class for all appenders.
Definition: appenderskeleton.h:43
std::shared_ptr< LoggingEvent > LoggingEventPtr
Definition: appender.h:37
#define BEGIN_LOG4CXX_CAST_MAP()
Definition: object.h:136
int getMaxMessageLength() const
Definition: syslogappender.h:156
helpers::SyslogWriter * sw
Definition: syslogappender.h:167
void setMaxMessageLength(int maxMessageLength1)
Definition: syslogappender.h:151
SyslogWriter is a wrapper around the DatagramSocket class it writes text to the specified host on the...
Definition: syslogwriter.h:39
LogString facilityStr
Definition: syslogappender.h:165
void setFacilityPrinting(bool facilityPrinting1)
If the FacilityPrinting option is set to true, the printed message will include the facility name of ...
Definition: syslogappender.h:138
int syslogFacility
Definition: syslogappender.h:164
#define DECLARE_LOG4CXX_OBJECT(object)
Definition: object.h:39
std::shared_ptr< Layout > LayoutPtr
Definition: appender.h:47
bool getFacilityPrinting() const
Returns the value of the FacilityPrinting option.
Definition: syslogappender.h:146
#define LOG4CXX_CAST_ENTRY_CHAIN(Interface)
Definition: object.h:154
Use SyslogAppender to send log messages to a remote syslog daemon.
Definition: syslogappender.h:46
LogString getFacility() const
Returns the value of the Facility option.
Definition: syslogappender.h:128
LOG4CXX_PTR_DEF(SMTPAppender)
int syslogHostPort
Definition: syslogappender.h:169
virtual bool requiresLayout() const
The SyslogAppender requires a layout.
Definition: syslogappender.h:94
int maxMessageLength
Definition: syslogappender.h:170
Definition: appender.h:32
std::basic_string< logchar > LogString
Definition: logstring.h:66