org.apache.log.output.net
Class SocketOutputTarget
- Closeable, ErrorAware, LogTarget
public class SocketOutputTarget
SocketOutputTarget
Useful for writing the output to a TCP/IP client socket.
private ObjectOutputStream | m_outputStream- Output strem to write the log
|
private Socket | m_socket- Socket to communicate with the server
|
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
|
m_outputStream
private ObjectOutputStream m_outputStream
Output strem to write the log
m_socket
private Socket m_socket
Socket to communicate with the server
SocketOutputTarget
public SocketOutputTarget(InetAddress address,
int port)
throws IOException Creates output target with the end point specified by the address and port
address - end point addressport - the end point port
SocketOutputTarget
public SocketOutputTarget(String host,
int port)
throws IOException Creates the output target with the end point specified by host and port
host - end point hostport - the end point port
write
protected void write(LogEvent event)
Writes the output as a LogEvent without formatting.
Formatting ia applied on the server side where it is log.