Apache log4cxx
Version 0.13.0
|
#include <telnetappender.h>
Public Member Functions | |
TelnetAppender () | |
~TelnetAppender () | |
virtual bool | requiresLayout () const |
This appender requires a layout to format the text to the attached client(s). More... | |
LogString | getEncoding () const |
void | setEncoding (const LogString &value) |
void | activateOptions (log4cxx::helpers::Pool &p) |
all of the options have been set, create the socket handler and wait for connections. More... | |
virtual void | setOption (const LogString &option, const LogString &value) |
Set options. More... | |
int | getPort () const |
Returns value of the Port option. More... | |
void | setPort (int port1) |
The Port option takes a positive integer representing the port where the server is waiting for connections. More... | |
void | close () |
shuts down the appender. More... | |
Public Member Functions inherited from log4cxx::AppenderSkeleton | |
AppenderSkeleton () | |
AppenderSkeleton (const LayoutPtr &layout) | |
void | finalize () |
Finalize this appender by calling the derived class' close method. More... | |
void | addFilter (const spi::FilterPtr &newFilter) |
Add a filter to end of the filter list. More... | |
void | clearFilters () |
Clear the filters chain. More... | |
const spi::ErrorHandlerPtr & | getErrorHandler () const |
Return the currently set spi::ErrorHandler for this Appender. More... | |
spi::FilterPtr | getFilter () const |
Returns the head Filter. More... | |
const spi::FilterPtr & | getFirstFilter () const |
Return the first filter in the filter chain for this Appender. More... | |
LayoutPtr | getLayout () const |
Returns the layout of this appender. More... | |
LogString | getName () const |
Returns the name of this Appender. More... | |
const LevelPtr & | getThreshold () const |
Returns this appenders threshold level. More... | |
bool | isAsSevereAsThreshold (const LevelPtr &level) const |
Check whether the message level is below the appender's threshold. More... | |
virtual void | doAppend (const spi::LoggingEventPtr &event, log4cxx::helpers::Pool &pool) |
This method performs threshold checks and invokes filters before delegating actual logging to the subclasses specific AppenderSkeleton::append method. More... | |
void | setErrorHandler (const spi::ErrorHandlerPtr eh) |
Set the ErrorHandler for this Appender. More... | |
void | setLayout (const LayoutPtr &layout1) |
Set the layout for this appender. More... | |
void | setName (const LogString &name1) |
Set the name of this Appender. More... | |
void | setThreshold (const LevelPtr &threshold) |
Set the threshold level. More... | |
Public Member Functions inherited from log4cxx::Appender | |
virtual | ~Appender () |
void | asdf () |
Public Member Functions inherited from log4cxx::spi::OptionHandler | |
virtual | ~OptionHandler () |
Public Member Functions inherited from log4cxx::helpers::Object | |
virtual | ~Object () |
virtual bool | instanceof (const Class &clazz) const =0 |
virtual const void * | cast (const Class &clazz) const =0 |
Protected Member Functions | |
virtual void | append (const spi::LoggingEventPtr &event, log4cxx::helpers::Pool &p) |
Handles a log event. More... | |
Protected Member Functions inherited from log4cxx::AppenderSkeleton | |
void | doAppendImpl (const spi::LoggingEventPtr &event, log4cxx::helpers::Pool &pool) |
Friends | |
class | SocketHandler |
Additional Inherited Members | |
Protected Attributes inherited from log4cxx::AppenderSkeleton | |
LayoutPtr | layout |
The layout variable does not need to be set if the appender implementation has its own layout. More... | |
LogString | name |
Appenders are named. More... | |
LevelPtr | threshold |
There is no level threshold filtering by default. More... | |
spi::ErrorHandlerPtr | errorHandler |
It is assumed and enforced that errorHandler is never null. More... | |
spi::FilterPtr | headFilter |
The first filter in the filter chain. More... | |
spi::FilterPtr | tailFilter |
The last filter in the filter chain. More... | |
bool | closed |
Is this appender closed? More... | |
log4cxx::helpers::Pool | pool |
std::recursive_mutex | mutex |
The TelnetAppender is a log4cxx appender that specializes in writing to a read-only socket. The output is provided in a telnet-friendly way so that a log can be monitored over TCP/IP. Clients using telnet connect to the socket and receive log data. This is handy for remote monitoring, especially when monitoring a servlet.
Here is a list of the available configuration options:
Name | Requirement | Description | Sample Value |
Port | optional | This parameter determines the port to use for announcing log events. The default port is 23 (telnet). | 5875 |
log4cxx::net::TelnetAppender::TelnetAppender | ( | ) |
log4cxx::net::TelnetAppender::~TelnetAppender | ( | ) |
|
virtual |
all of the options have been set, create the socket handler and wait for connections.
Reimplemented from log4cxx::AppenderSkeleton.
|
protectedvirtual |
Handles a log event.
For this appender, that means writing the message to each connected client.
Implements log4cxx::AppenderSkeleton.
|
virtual |
shuts down the appender.
Implements log4cxx::Appender.
LogString log4cxx::net::TelnetAppender::getEncoding | ( | ) | const |
|
inline |
Returns value of the Port option.
|
inlinevirtual |
This appender requires a layout to format the text to the attached client(s).
Implements log4cxx::Appender.
void log4cxx::net::TelnetAppender::setEncoding | ( | const LogString & | value | ) |
|
virtual |
Set options.
Reimplemented from log4cxx::AppenderSkeleton.
|
inline |
The Port option takes a positive integer representing the port where the server is waiting for connections.
|
friend |