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]

Reply via email to