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;
71 bool requiresLayout() const override;
92 void activateOptions(helpers::Pool& p) override;
118 void setPort(
int newValue);
136 int getMaxConnections() const;
143 void setMaxConnections(
int newValue);
152 void setReuseAddress(
bool newValue);
155 void close() override;
160 void append(const spi::LoggingEventPtr& event, helpers::Pool& p) override;
167 void write(helpers::ByteBuffer&);
168 void writeStatus(const helpers::SocketPtr& socket, const
LogString& msg, helpers::Pool& p);
169 void acceptConnections();
171 struct TelnetAppenderPriv;
Implementation base class for all appenders.
Definition: appenderskeleton.h:41
The TelnetAppender writes log messages to clients that connect to the TCP port.
Definition: telnetappender.h:53
std::basic_string< logchar > LogString
Definition: logstring.h:60
#define LOG4CXX_CAST_ENTRY(Interface)
Definition: object.h:158
#define END_LOG4CXX_CAST_MAP()
Definition: object.h:152
#define DECLARE_LOG4CXX_OBJECT(object)
Definition: object.h:43
#define LOG4CXX_CAST_ENTRY_CHAIN(Interface)
Definition: object.h:164
#define BEGIN_LOG4CXX_CAST_MAP()
Definition: object.h:146