18#ifndef _LOG4CXX_NET_TELNET_APPENDER_H
19#define _LOG4CXX_NET_TELNET_APPENDER_H
51 static const int DEFAULT_PORT;
52 static const int MAX_CONNECTIONS;
67 bool requiresLayout() const override;
88 void activateOptions(helpers::Pool& p) override;
112 void setPort(
int newValue);
119 int getMaxConnections() const;
126 void setMaxConnections(
int newValue);
130 void close() override;
135 void append(const spi::LoggingEventPtr& event, helpers::Pool& p) override;
142 void write(helpers::ByteBuffer&);
143 void writeStatus(const helpers::SocketPtr& socket, const
LogString& msg, helpers::Pool& p);
144 void acceptConnections();
146 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:49
#define LOG4CXX_EXPORT
Definition: log4cxx.h:101
#define LOG4CXX_PTR_DEF(T)
Definition: log4cxx.h:64
#define LOG4CXX_NS
Definition: log4cxx.h:104
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