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 |
Public Member Functions | |
TelnetAppender () | |
~TelnetAppender () | |
virtual bool | requiresLayout () const |
This appender requires a layout to format the text to the attached client(s). | |
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. | |
virtual void | setOption (const LogString &option, const LogString &value) |
Set options. | |
int | getPort () const |
Returns value of the Port option. | |
void | setPort (int port1) |
The Port option takes a positive integer representing the port where the server is waiting for connections. | |
void | close () |
shuts down the appender. | |
Protected Member Functions | |
virtual void | append (const spi::LoggingEventPtr &event, log4cxx::helpers::Pool &p) |
Handles a log event. | |
Friends | |
class | SocketHandler |
|
|
|
|
|
all of the options have been set, create the socket handler and wait for connections.
Reimplemented from AppenderSkeleton. |
|
Handles a log event. For this appender, that means writing the message to each connected client. Implements AppenderSkeleton. |
|
shuts down the appender.
Implements Appender. |
|
|
|
Returns value of the Port option.
|
|
This appender requires a layout to format the text to the attached client(s).
Implements Appender. |
|
|
|
Set options.
Reimplemented from AppenderSkeleton. |
|
The Port option takes a positive integer representing the port where the server is waiting for connections.
|
|
|