18 #ifndef _LOG4CXX_NET_TELNET_APPENDER_H
19 #define _LOG4CXX_NET_TELNET_APPENDER_H
22 #pragma warning ( push )
23 #pragma warning ( disable: 4231 4251 4275 4786 )
74 friend class SocketHandler;
76 static const int DEFAULT_PORT;
77 static const int MAX_CONNECTIONS;
93 virtual
bool requiresLayout()
const
146 ConnectionList connections;
148 log4cxx::helpers::CharsetEncoderPtr encoder;
151 size_t activeConnections;
152 void acceptConnections();
160 #if defined(_MSC_VER)
161 #pragma warning ( pop )
Implementation base class for all appenders.
Definition: appenderskeleton.h:46
A byte buffer.
Definition: bytebuffer.h:34
Definition: serversocket.h:29
Definition: telnetappender.h:72
void activateOptions(log4cxx::helpers::Pool &p)
all of the options have been set, create the socket handler and wait for connections.
virtual void append(const spi::LoggingEventPtr &event, log4cxx::helpers::Pool &p)
Handles a log event.
virtual void setOption(const LogString &option, const LogString &value)
Set options.
void setPort(int port1)
The Port option takes a positive integer representing the port where the server is waiting for connec...
Definition: telnetappender.h:123
LogString getEncoding() const
int getPort() const
Returns value of the Port option.
Definition: telnetappender.h:114
void setEncoding(const LogString &value)
void close()
shuts down the appender.
log4cxx::helpers::SocketPtr Connection
Definition: telnetappender.h:43
LOG4CXX_LIST_DEF(ObjectOutputStreamList, log4cxx::helpers::ObjectOutputStreamPtr)
LOG4CXX_PTR_DEF(SMTPAppender)
std::shared_ptr< LoggingEvent > LoggingEventPtr
Definition: appender.h:37
Definition: appender.h:33
std::basic_string< logchar > LogString
Definition: logstring.h:66
#define LOG4CXX_CAST_ENTRY(Interface)
Definition: object.h:148
#define END_LOG4CXX_CAST_MAP()
Definition: object.h:142
#define DECLARE_LOG4CXX_OBJECT(object)
Definition: object.h:39
#define LOG4CXX_CAST_ENTRY_CHAIN(Interface)
Definition: object.h:154
#define BEGIN_LOG4CXX_CAST_MAP()
Definition: object.h:136