NLOG4J 1.2.24

org.apache.log4j.helpers
Class SyslogWriter

java.lang.Object
  extended by java.io.Writer
      extended by org.apache.log4j.helpers.SyslogWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable

public class SyslogWriter
extends Writer

SyslogWriter is a wrapper around the java.net.DatagramSocket class so that it behaves like a java.io.Writer.

Since:
0.7.3

Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
SyslogWriter(String syslogHost)
           
 
Method Summary
 void close()
           
 void flush()
           
 void write(char[] buf, int off, int len)
           
 void write(String string)
           
 
Methods inherited from class java.io.Writer
append, append, append, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyslogWriter

public SyslogWriter(String syslogHost)
Method Detail

write

public void write(char[] buf,
                  int off,
                  int len)
           throws IOException
Specified by:
write in class Writer
Throws:
IOException

write

public void write(String string)
           throws IOException
Overrides:
write in class Writer
Throws:
IOException

flush

public void flush()
Specified by:
flush in interface Flushable
Specified by:
flush in class Writer

close

public void close()
Specified by:
close in interface Closeable
Specified by:
close in class Writer

NLOG4J 1.2.24

Copyright 2000-2005 Apache Software Foundation.