org.apache.log.output.net
Class SocketOutputTarget
- ErrorAware, LogTarget
public class SocketOutputTarget
SocketOutputTarget
Useful for writing the output to a TCP/IP client socket.
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
|
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
close
public void close()
Shutdown target.
Attempting to write to target after close() will cause errors to be logged.
- close in interface AbstractOutputTarget
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.