18#ifndef _LOG4CXX_NET_SOCKET_APPENDER_SKELETON_H
19#define _LOG4CXX_NET_SOCKET_APPENDER_SKELETON_H
23#if LOG4CXX_ABI_VERSION <= 15
86 struct SocketAppenderSkeletonPriv;
95#if LOG4CXX_ABI_VERSION <= 15
115#if LOG4CXX_ABI_VERSION <= 15
177#if LOG4CXX_ABI_VERSION <= 15
186 void setSocketSubclass(
const LogString& newSubclass);
191 const LogString& getSocketSubclass()
const;
217#if LOG4CXX_ABI_VERSION <= 15
226 virtual void cleanUp(LOG4CXX_NS::helpers::Pool& p) = 0;
AppenderSkeleton(LOG4CXX_PRIVATE_PTR(AppenderSkeletonPrivate) priv)
virtual void cleanUp(log4cxx::helpers::Pool &p)=0
void close() override
Release any resources allocated within the appender such as file handles, network connections,...
SocketAppenderSkeleton(int defaultPort, int reconnectionDelay)
bool requiresLayout() const override
This appender does not use a layout.
Definition socketappenderskeleton.h:121
SocketAppenderSkeleton(std::unique_ptr< SocketAppenderSkeletonPriv > priv)
SocketAppenderSkeleton(const LogString &host, int port, int reconnectionDelay)
Connects to remote server at host and port.
bool getLocationInfo() const
Returns value of the LocationInfo option.
int getReconnectionDelay() const
Returns value of the ReconnectionDelay option.
SocketAppenderSkeleton(helpers::InetAddressPtr address, int port, int reconnectionDelay)
Connects to remote server at address and port.
void setPort(int port1)
The Port option takes a positive integer representing the port where the server is waiting for connec...
int getPort() const
Returns value of the Port option.
void setReconnectionDelay(int reconnectionDelay1)
The ReconnectionDelay option takes a positive integer representing the number of milliseconds to wait...
void setRemoteHost(const LogString &host)
The RemoteHost option takes a string value which should be the host name of the server where a Apache...
~SocketAppenderSkeleton()
const LogString & getRemoteHost() const
Returns value of the RemoteHost option.
void activateOptions(helpers::Pool &p) override
void setOption(const LogString &option, const LogString &value) override
Set option to value.
virtual int getDefaultDelay() const =0
void setLocationInfo(bool locationInfo1)
The LocationInfo option takes a boolean value.
virtual int getDefaultPort() const =0
virtual void setSocket(helpers::SocketPtr &socket, helpers::Pool &p)=0
std::basic_string< logchar > LogString
Definition logstring.h:60
#define LOG4CXX_ACTIVATE_OPTIONS_FORMAL_PARAMETERS
Activate the options that were previously set with calls to option setters.
Definition optionhandler.h:53