Package org.apache.log4j.helpers
Class SyslogWriter
java.lang.Object
java.io.Writer
org.apache.log4j.helpers.SyslogWriter
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
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
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SyslogWriter
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 Details
-
write
- Specified by:
write
in classWriter
- Throws:
IOException
-
write
- Overrides:
write
in classWriter
- Throws:
IOException
-
flush
public void flush() -
close
public void close()
-