Inherited by SocketAppender, and XMLSocketAppender.
Public Member Functions | |
SocketAppenderSkeleton (int defaultPort, int reconnectionDelay) | |
~SocketAppenderSkeleton () | |
SocketAppenderSkeleton (helpers::InetAddressPtr address, int port, int reconnectionDelay) | |
Connects to remote server at address and port . | |
SocketAppenderSkeleton (const LogString &host, int port, int reconnectionDelay) | |
Connects to remote server at host and port . | |
void | activateOptions (log4cxx::helpers::Pool &p) |
Connect to the specified RemoteHost and Port. | |
void | close () |
Release any resources allocated within the appender such as file handles, network connections, etc. | |
bool | requiresLayout () const |
This appender does not use a layout. | |
void | setRemoteHost (const LogString &host) |
The RemoteHost option takes a string value which should be the host name of the server where a Apache Chainsaw or compatible is running. | |
const LogString & | getRemoteHost () const |
Returns value of the RemoteHost option. | |
void | setPort (int port1) |
The Port option takes a positive integer representing the port where the server is waiting for connections. | |
int | getPort () const |
Returns value of the Port option. | |
void | setLocationInfo (bool locationInfo1) |
The LocationInfo option takes a boolean value. | |
bool | getLocationInfo () const |
Returns value of the LocationInfo option. | |
void | setReconnectionDelay (int reconnectionDelay1) |
The ReconnectionDelay option takes a positive integer representing the number of milliseconds to wait between each failed connection attempt to the server. | |
int | getReconnectionDelay () const |
Returns value of the ReconnectionDelay option. | |
void | fireConnector () |
void | setOption (const LogString &option, const LogString &value) |
Set option to value . | |
Protected Member Functions | |
virtual void | setSocket (log4cxx::helpers::SocketPtr &socket, log4cxx::helpers::Pool &p)=0 |
virtual void | cleanUp (log4cxx::helpers::Pool &p)=0 |
virtual int | getDefaultDelay () const =0 |
virtual int | getDefaultPort () const =0 |
|
|
|
|
|
Connects to remote server at
|
|
Connects to remote server at
|
|
Connect to the specified RemoteHost and Port.
Reimplemented from AppenderSkeleton. |
|
Implemented in SocketAppender, and XMLSocketAppender. |
|
Release any resources allocated within the appender such as file handles, network connections, etc. It is a programming error to append to a closed appender. Implements Appender. |
|
|
|
Implemented in SocketAppender, and XMLSocketAppender. |
|
Implemented in SocketAppender, and XMLSocketAppender. |
|
Returns value of the LocationInfo option.
|
|
Returns value of the Port option.
|
|
Returns value of the ReconnectionDelay option.
|
|
Returns value of the RemoteHost option.
|
|
This appender does not use a layout.
Hence, this method returns Implements Appender. |
|
The LocationInfo option takes a boolean value. If true, the information sent to the remote host will include location information. By default no location information is sent to the server. |
|
Set The handling of each option depends on the OptionHandler instance. Some options may become active immediately whereas other may be activated only when activateOptions is called. Reimplemented from AppenderSkeleton. |
|
The Port option takes a positive integer representing the port where the server is waiting for connections.
|
|
The ReconnectionDelay option takes a positive integer representing the number of milliseconds to wait between each failed connection attempt to the server. The default value of this option is 30000 which corresponds to 30 seconds. Setting this option to zero turns off reconnection capability. |
|
The RemoteHost option takes a string value which should be the host name of the server where a Apache Chainsaw or compatible is running.
|
|
Implemented in SocketAppender, and XMLSocketAppender. |