18#ifndef _LOG4CXX_NET_TELNET_APPENDER_H
19#define _LOG4CXX_NET_TELNET_APPENDER_H
67 friend class SocketHandler;
69 static const int DEFAULT_PORT;
70 static const int MAX_CONNECTIONS;
85 bool requiresLayout()
const override
151 void write(LOG4CXX_NS::helpers::ByteBuffer&);
152 void writeStatus(
const LOG4CXX_NS::helpers::SocketPtr& socket,
const LogString& msg, LOG4CXX_NS::helpers::Pool& p);
153 void acceptConnections();
155 struct TelnetAppenderPriv;
Implementation base class for all appenders.
Definition: appenderskeleton.h:41
Definition: telnetappender.h:65
void close() override
shuts down the appender.
void activateOptions(helpers::Pool &p) override
Activate the options that were previously set with calls to option setters.
void append(const spi::LoggingEventPtr &event, helpers::Pool &p) override
Handles a log event.
void setPort(int port1)
The Port option takes a positive integer representing the port where the server is waiting for connec...
void setOption(const LogString &option, const LogString &value) override
Set option to value.
LogString getEncoding() const
The current encoding value.
int getPort() const
Returns value of the Port option.
void setEncoding(const LogString &value)
Set the encoding to value.
log4cxx::helpers::SocketPtr Connection
Definition: telnetappender.h:36
std::shared_ptr< LoggingEvent > LoggingEventPtr
Definition: appender.h:32
LOG4CXX_LIST_DEF(AppenderList, AppenderPtr)
std::basic_string< logchar > LogString
Definition: logstring.h:60
LOG4CXX_PTR_DEF(Appender)
#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