Not familiar with the syslog, but this is from the javadoc:
SyslogHost
The host name of the syslog host where log output should go. WARNING If the
SyslogHost is not set, then this appender will fail.
Facility A string representing the syslog facility.
Acceptable values are in the set {KERN, USER, MAIL, DAEMON, AUTH, SYSLOG,
LPR, NEWS, UUCP, CRON, AUTHPRIV, FTP LOCAL0, LOCAL1, LOCAL2, LOCAL3, LOCAL4,
LOCAL5, LOCAL6, LOCAL7}.
Hope it helps,
Rex
-----Original Message-----
From: Jeroen Breedveld [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 31, 2001 11:35 AM
To: [EMAIL PROTECTED]
Subject: Cannot get SyslogAppender to work
Hi all,
I've been trying to get the SyslogAppender with the following code, but no
luck so far:
cat = Category.getInstance(MyClass.class.getName());
cat.setPriority(Priority.INFO);
SimpleLayout layout = new SimpleLayout();
SyslogAppender appender = new SyslogAppender(layout, "anda", 0);
cat.addAppender(appender);
cat.warn("Low fuel level.");
anda is a linux server in our network (not the machine I'm testing from!),
do I have to configure it in a special way to allow syslog messages from
another machine than itself to enter its log?
What's the meaning of that parameter "syslogFacility" in SyslogAppender
constructor?
Many thanks,
jeroen
ps.: I've tried looking similar questions like this but was unable to find
them at www.mail-archives.com (link doesn't even work!) and
www.geocrawler.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]