Hi,

I am not experienced enough in SyslogAppender, because this is the first
time I am using it. I am trying to get the basic functionality working.
I am running the application in a Linux machine (Suse).

 

This is the code I have:

***********************code**********************

mySyslogger = (SystemLog)Logger.getLogger("sso1", myFactory);

 

SyslogAppender syslogApp = new SyslogAppender(layout, "localhost",
org.apache.log4j.net.SyslogAppender.LOG_USER);

 

addAppender(syslogApp);

 

mySyslogger.debug(message);//also have mySyslogger.info(message), but
neither works

 

**********************code**************************

 

Can anyone throw some light on why the above code does not work? I
checked in /var/log/messages file in my Linux machine. Nothing goes into
that file.

 

I also tried org.apache.log4j.net.SyslogAppender.LOG_MAIL, but did not
see anything going into /var/log/mail file.

 

Can any one help me on this

 

Thanks in advance,

 

Pramodh Peddi.

 

 

Reply via email to