18#ifndef _LOG4CXX_NET_TELNET_APPENDER_H
19#define _LOG4CXX_NET_TELNET_APPENDER_H
55 static const int DEFAULT_PORT;
56 static const int MAX_CONNECTIONS;
168 void append( const
spi::LoggingEventPtr& event ) override;
175 void write(
helpers::ByteBuffer&);
177 void acceptConnections();
179 struct TelnetAppenderPriv;
AppenderSkeleton(LOG4CXX_PRIVATE_PTR(AppenderSkeletonPrivate) priv)
The TelnetAppender writes log messages to clients that connect to the TCP port.
Definition telnetappender.h:53
LogString getHostname() const
The Hostname on which to accept connections.
void setReuseAddress(bool newValue)
Use newValue for the SO_REUSEADDR option of the socket accepting connections.
void setOption(const LogString &option, const LogString &value) override
Override this method to set option to value.
LogString getEncoding() const
The current encoding value.
void append(const spi::LoggingEventPtr &event) override
Send event to each connected client.
int getPort() const
The TCP Port number on which to accept connections.
void setEncoding(const LogString &value)
Set the encoding to value.
void setHostname(const LogString &newValue)
Use newValue as the Hostname on which to accept connections.
void setMaxConnections(int newValue)
Set the number of allowed concurrent connections to newValue.
void setPort(int newValue)
Use newValue as the TCP port number on which to accept connections.
void activateOptions() override
Activate the options that were previously set with calls to option setters.
int getMaxConnections() const
The number of allowed concurrent connections.
void setNonBlocking(bool newValue)
Use newValue for the behaviour when the TCP send buffer (on an accepted socket connection) is full.
Definition propertysetter.h:27
LOG4CXX_PTR_DEF(JSONSocketAppender)
std::basic_string< logchar > LogString
Definition logstring.h:51
#define LOG4CXX_CAST_ENTRY(Interface)
Definition object.h:153
#define END_LOG4CXX_CAST_MAP()
Definition object.h:147
#define DECLARE_LOG4CXX_OBJECT(object)
Definition object.h:41
#define LOG4CXX_CAST_ENTRY_CHAIN(Interface)
Definition object.h:159
#define BEGIN_LOG4CXX_CAST_MAP()
Definition object.h:141