org.apache.log.output.net
public class SocketOutputTarget extends AbstractOutputTarget
m_formatter| Constructor and Description |
|---|
SocketOutputTarget(java.net.InetAddress address,
int port)
Creates output target with the end point specified by the address and port
|
SocketOutputTarget(java.lang.String host,
int port)
Creates the output target with the end point specified by host and port
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getFormatter, open, output, setFormatter, writeerror, getErrorHandler, isOpen, processEvent, setErrorHandlerpublic SocketOutputTarget(java.net.InetAddress address,
int port)
throws java.io.IOException
address - end point addressport - the end point portjava.io.IOException - if an I/O error ocurrs when creating socketpublic SocketOutputTarget(java.lang.String host,
int port)
throws java.io.IOException
host - end point hostport - the end point portjava.io.IOException - if an I/O error ocurrs when creating socketprotected void write(LogEvent event)
event - the LogEventprotected void doProcessEvent(LogEvent event)
doProcessEvent in class AbstractOutputTargetevent - the LogEventpublic void close()
close in class AbstractOutputTarget