18 #ifndef _LOG4CXX_NET_XML_SOCKET_APPENDER_H 19 #define _LOG4CXX_NET_XML_SOCKET_APPENDER_H 113 ~XMLSocketAppender();
118 XMLSocketAppender(helpers::InetAddressPtr address,
int port);
123 XMLSocketAppender(const
LogString& host,
int port);
127 virtual
void setSocket(
log4cxx::helpers::SocketPtr& socket,
log4cxx::helpers::Pool& p);
129 virtual
void cleanUp(
log4cxx::helpers::Pool& p);
131 virtual
int getDefaultDelay() const;
133 virtual
int getDefaultPort() const;
138 log4cxx::helpers::WriterPtr writer;
140 XMLSocketAppender(const XMLSocketAppender&);
141 XMLSocketAppender& operator=(const XMLSocketAppender&);
149 #endif // _LOG4CXX_NET_XML_SOCKET_APPENDER_H #define LOG4CXX_CAST_ENTRY(Interface)
Definition: object.h:153
#define END_LOG4CXX_CAST_MAP()
Definition: object.h:147
Implementation base class for all appenders.
Definition: appenderskeleton.h:43
Sends LoggingEvent objects in XML format to a remote a log server, usually a XMLSocketNode.
Definition: xmlsocketappender.h:88
std::shared_ptr< LoggingEvent > LoggingEventPtr
Definition: appender.h:37
#define BEGIN_LOG4CXX_CAST_MAP()
Definition: object.h:141
static int DEFAULT_RECONNECTION_DELAY
The default reconnection delay (30000 milliseconds or 30 seconds).
Definition: xmlsocketappender.h:99
static int DEFAULT_PORT
The default port number of remote logging server (4560).
Definition: xmlsocketappender.h:94
Abstract base class for SocketAppender and XMLSocketAppender.
Definition: socketappenderskeleton.h:41
#define DECLARE_LOG4CXX_OBJECT(object)
Definition: object.h:39
#define LOG4CXX_CAST_ENTRY_CHAIN(Interface)
Definition: object.h:159
static const int MAX_EVENT_LEN
An event XML stream cannot exceed 1024 bytes.
Definition: xmlsocketappender.h:104
LOG4CXX_PTR_DEF(SMTPAppender)
Definition: appender.h:32
std::basic_string< logchar > LogString
Definition: logstring.h:66