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