Save This Page
Home » slf4j-1.5.5 » org.apache » log4j » helpers » [javadoc | source]
org.apache.log4j.helpers
public class: SyslogWriter [javadoc | source]
java.lang.Object
   java.io.Writer
      org.apache.log4j.helpers.SyslogWriter

All Implemented Interfaces:
    Closeable, Flushable, Appendable

SyslogWriter is a wrapper around the java.net.DatagramSocket class so that it behaves like a java.io.Writer.
Field Summary
final  int SYSLOG_PORT     
static  String syslogHost    Host string from last constructed SyslogWriter.
     
    Constructor:
     public SyslogWriter(String syslogHost) 
      Constructs a new instance of SyslogWriter.
      Parameters:
      syslogHost - host name, may not be null. A port may be specified by following the name or IPv4 literal address with a colon and a decimal port number. To specify a port with an IPv6 address, enclose the IPv6 address in square brackets before appending the colon and decimal port number.
    Method from org.apache.log4j.helpers.SyslogWriter Summary:
    close,   flush,   write,   write
    Methods from java.io.Writer:
    append,   append,   append,   append,   append,   append,   close,   flush,   write,   write,   write,   write,   write
    Methods from java.lang.Object:
    equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
    Method from org.apache.log4j.helpers.SyslogWriter Detail:
     public  void close() 
     public  void flush() 
     public  void write(String string) throws IOException 
     public  void write(char[] buf,
        int off,
        int len) throws IOException