|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.log5j.Writer
org.log5j.writer.SocketWriter
public final class SocketWriter
SocketWriter writes log messages to a TCP socket.
SocketWriter requires two configuration properties to be set;
host: The name of the host the socket must connect toport: The port the socket must connect to
| Constructor Summary | |
|---|---|
SocketWriter(Format format,
java.util.Properties properties)
Create a new SocketWriter and connect. |
|
| Method Summary | |
|---|---|
void |
write(java.lang.String message)
Write a single message to the log. |
| Methods inherited from class org.log5j.Writer |
|---|
getFormat |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SocketWriter(Format format,
java.util.Properties properties)
throws java.io.IOException
SocketWriter and connect.
format - the Format object for this
SocketWriterproperties - configuration properties for this
SocketWriter.
java.io.IOException - if the socket cannot be opened for writing| Method Detail |
|---|
public void write(java.lang.String message)
Writer
write in class Writermessage - the message to write
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||