tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bachler, Elisabeth (Elisabeth)" <ebach...@lucent.com>
Subject RE: Log4J output to SYSLOG
Date Mon, 06 Feb 2006 17:37:17 GMT
It looks more or less like mine.
My properties file is:
log4j.rootLogger=debug, SYSLOG

log4j.logger.lucent.com.bean.UtilBean=DEBUG,SYSLOG


log4j.appender.SYSLOG=org.apache.log4j.net.SyslogAppender
log4j.appender.SYSLOG.syslogHost=localhost
log4j.appender.SYSLOG.layout=org.apache.log4j.PatternLayout
log4j.appender.SYSLOG.layout.ConversionPattern=%d{dd-MM-yyyy HH:mm:ss}  %-5p
(%C
:%M:%L) - %m%n
log4j.appender.SYSLOG.Facility=LOCAL1

Hope it helps
Elisabeth

-----Original Message-----
From: Mark F [mailto:mfaine@knology.net]
Sent: lunes, 06 de febrero de 2006 16:06
To: Tomcat Users List; ebachler@lucent.com
Subject: Re: Log4J output to SYSLOG


Bachler, Elisabeth (Elisabeth) wrote:
> I have modified the log4j.properties file  to send the output to SYSLOG
and
> I think it is working
> Thank you for your help

Could you explain how it was that you accomplished this?

I'm trying to do much the same thing with Tomcat 5.0.30.

So far I have:

1.  commons-logging.jar and log4j.jar are in the classpath and found by 
tomcat (CATALINA_HOME/bin)

2. Written (borrowed mostly) a script to start Tomcat via jsvc as user 
tomcat.

3. Configured log4j.properties file and placed in 
CATALINA_HOME/common/classes

log4j.rootLogger=INFO, A1
log4j.appender.A1=org.apache.log4j.net.SyslogAppender
log4j.appender.A1.SyslogHost=127.0.0.1
log4j.appender.A1.facility=LOCAL7
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%-4r %-5p %c{2} %M.%L %x - %m\n

It does not seem to be sending anything to syslog

Thanks,
-Mark






---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message