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
132 void acceptConnections();
134 struct TelnetAppenderPriv;
Implementation base class for all appenders.
Definition: appenderskeleton.h:41
A byte buffer.
Definition: bytebuffer.h:34
Definition: telnetappender.h:65
void close() override
shuts down the appender.
void activateOptions(helpers::Pool &p) override
all of the options have been set, create the socket handler and wait for connections.
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 options.
LogString getEncoding() const
int getPort() const
Returns value of the Port option.
void setEncoding(const LogString &value)
LOG4CXX_LIST_DEF(ConnectionList, Connection)
log4cxx::helpers::SocketPtr Connection
Definition: telnetappender.h:36
LOG4CXX_PTR_DEF(SMTPAppender)
std::shared_ptr< LoggingEvent > LoggingEventPtr
Definition: appender.h:32
Definition: configuration.h:25
std::basic_string< logchar > LogString
Definition: logstring.h:60
#define LOG4CXX_CAST_ENTRY(Interface)
Definition: object.h:157
#define END_LOG4CXX_CAST_MAP()
Definition: object.h:151
#define DECLARE_LOG4CXX_OBJECT(object)
Definition: object.h:42
#define LOG4CXX_CAST_ENTRY_CHAIN(Interface)
Definition: object.h:163
#define BEGIN_LOG4CXX_CAST_MAP()
Definition: object.h:145