public class SyslogWriter extends Writer
Modifier and Type | Field and Description |
---|---|
private InetAddress |
address |
private DatagramSocket |
ds |
private int |
port |
(package private) int |
SYSLOG_PORT |
(package private) static String |
syslogHost
Deprecated.
|
Constructor and Description |
---|
SyslogWriter(String syslogHost)
Constructs a new instance of SyslogWriter.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
void |
write(char[] buf,
int off,
int len) |
void |
write(String string) |
final int SYSLOG_PORT
static String syslogHost
private InetAddress address
private final int port
private DatagramSocket ds
public SyslogWriter(String syslogHost)
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 void write(char[] buf, int off, int len) throws IOException
write
in class Writer
IOException
public void write(String string) throws IOException
write
in class Writer
IOException
public void flush()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses