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;
167 void write(
helpers::ByteBuffer&);
169 void acceptConnections();
171 struct TelnetAppenderPriv;
AppenderSkeleton(LOG4CXX_PRIVATE_PTR(AppenderSkeletonPrivate) priv)
The TelnetAppender writes log messages to clients that connect to the TCP port.
Definition telnetappender.h:53
void close() override
Shutdown this 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
Send event to each connected client.
LogString getHostname() const
The Hostname on which to accept connections.
void setReuseAddress(bool newValue)
Use newValue for the SO_REUSEADDR option of the socket accepting connections.
void setOption(const LogString &option, const LogString &value) override
Set option to value.
LogString getEncoding() const
The current encoding value.
int getPort() const
The TCP Port number on which to accept connections.
void setEncoding(const LogString &value)
Set the encoding to value.
void setHostname(const LogString &newValue)
Use newValue as the Hostname on which to accept connections.
void setMaxConnections(int newValue)
Set the number of allowed concurrent connections to newValue.
bool requiresLayout() const override
If no layout is provided, sends only the log message to attached client(s).
void setPort(int newValue)
Use newValue as the TCP port number on which to accept connections.
int getMaxConnections() const
The number of allowed concurrent connections.
Definition propertysetter.h:27
LOG4CXX_PTR_DEF(SMTPAppender)
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