org.apache.log4j.helpers

Class SyslogWriter


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

Constructor Summary

SyslogWriter(String syslogHost)

Method Summary

void
close()
void
flush()
void
write(String string)
void
write(char[] buf, int off, int len)

Constructor Details

SyslogWriter

public SyslogWriter(String syslogHost)

Method Details

close

public void close()

flush

public void flush()

write

public void write(String string)
            throws IOException

write

public void write(char[] buf,
                  int off,
                  int len)
            throws IOException

Copyright 2000-2005 Apache Software Foundation.