----- Original Message -----
From: "Rex Madden" <[EMAIL PROTECTED]>
To: "LOG4J Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, January 31, 2001 5:39 PM
Subject: RE: Cannot get SyslogAppender to work


| 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}.
|

I tried:

        SyslogAppender appender = new SyslogAppender(layout, "anda",
SyslogAppender.LOG_LOCAL0);

I'm not sure if LOCAL0 is correct, but I suppose I cannot make my debug
messages look like messages from the kernel!

I also tried:

        SyslogAppender appender = new SyslogAppender(layout,
"bogushostname", SyslogAppender.LOG_LOCAL0);

this gave me an "java.net.UnknownHostException: bogushostname" so this means
it can actually reach the syslog server.

greetings,

jeroen


|
| Hope it helps,
|
| Rex
|




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to