public class

SyslogWriter

extends Writer
java.lang.Object
   ↳ java.io.Writer
     ↳ org.apache.log4j.helpers.SyslogWriter

Class Overview

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

Summary

[Expand]
Inherited Fields
From class java.io.Writer
Public Constructors
SyslogWriter(String syslogHost)
Constructs a new instance of SyslogWriter.
Public Methods
void close()
void flush()
void write(String string)
void write(char[] buf, int off, int len)
[Expand]
Inherited Methods
From class java.io.Writer
From class java.lang.Object
From interface java.io.Closeable
From interface java.io.Flushable
From interface java.lang.Appendable

Public Constructors

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.

Public Methods

public void close ()

public void flush ()

public void write (String string)

Throws
IOException

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

Throws
IOException