org.apache.log.output.net
public class SocketOutputTarget extends AbstractOutputTarget
Field Summary | |
---|---|
ObjectOutputStream | m_outputStream Output strem to write the log |
Socket | m_socket Socket to communicate with the server |
Constructor Summary | |
---|---|
SocketOutputTarget(InetAddress address, int port)
Creates output target with the end point specified by the address and port
| |
SocketOutputTarget(String host, int port)
Creates the output target with the end point specified by host and port
|
Method Summary | |
---|---|
void | close()
Shutdown target.
|
protected void | doProcessEvent(LogEvent event)
To process the LogEvent
|
protected void | write(LogEvent event)
Writes the output as a LogEvent without formatting.
|
Parameters: address end point address port the end point port
Throws: IOException if an I/O error ocurrs when creating socket
Parameters: host end point host port the end point port
Throws: IOException if an I/O error ocurrs when creating socket
Parameters: event the LogEvent
Parameters: event the LogEvent