18#ifndef _LOG4CXX_NET_SOCKET_APPENDER_SKELETON_H
19#define _LOG4CXX_NET_SOCKET_APPENDER_SKELETON_H
83 struct SocketAppenderSkeletonPriv;
AppenderSkeleton(LOG4CXX_PRIVATE_PTR(AppenderSkeletonPrivate) priv)
void close() override
Release any resources allocated within the appender such as file handles, network connections,...
const LogString & getSocketSubclass() const
The class name used for the helpers::Socket interface implemention.
void activateOptions() override
Activate the options that were previously set with calls to option setters.
SocketAppenderSkeleton(int defaultPort, int reconnectionDelay)
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.
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 setSocketSubclass(const LogString &newSubclass)
Use newSubclass as the helpers::Socket interface instead of the default implementation.
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.
SocketAppenderSkeleton(const helpers::InetAddressPtr &address, int port, int reconnectionDelay)
Connects to remote server at address and port.
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 activateOptions()=0
Activate the options that were previously set with calls to option setters.
std::basic_string< logchar > LogString
Definition logstring.h:51