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)
SocketAppenderSkeleton(int defaultPort, int millisecondDelay)
A unconnected appender sending to defaultPort, with a retry after millisecondDelay when unable to est...
const LogString & getSocketSubclass() const
The class name used for the helpers::Socket interface implemention.
void activateOptions() override
Connects to the configured RemoteHost and Port.
SocketAppenderSkeleton(const helpers::InetAddressPtr &address, int port, int millisecondDelay)
A remote server at address and port, with a retry after millisecondDelay when unable to establish a c...
SocketAppenderSkeleton(std::unique_ptr< SocketAppenderSkeletonPriv > priv)
void setRemoteHost(const LogString &newValue)
Use newValue as the name of the server.
int getReconnectionDelay() const
The value of the ReconnectionDelay option, the number of milliseconds to wait between each failed con...
int getPort() const
Returns value of the Port option.
void setSocketSubclass(const LogString &newSubclass)
Use newSubclass as the helpers::Socket interface instead of the default implementation.
void setReconnectionDelay(int millisecondDelay)
Use millisecondDelay as the number of milliseconds to wait between each failed connection attempt to ...
SocketAppenderSkeleton(const LogString &host, int port, int millisecondDelay)
A remote server at host and port, with a retry after millisecondDelay when unable to establish a conn...
~SocketAppenderSkeleton()
Close and shutdown the connection if not already done.
const LogString & getRemoteHost() const
Returns value of the RemoteHost option.
void setPort(int newValue)
Use newValue, which must be a positive integer, as the port on which the server is waiting for connec...
void append(const spi::LoggingEventPtr &event) override
Sends the message that the configured Layout produces from event to the output sink.
void setOption(const LogString &option, const LogString &value) override
Override this method to set option to value.
virtual int getDefaultDelay() const =0
virtual int getDefaultPort() const =0
virtual void activateOptions()=0
Activate the options that were previously set with calls to option setters.
std::shared_ptr< LoggingEvent > LoggingEventPtr
Definition appender.h:32
std::basic_string< logchar > LogString
Definition logstring.h:51