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 Tue, 24 Jan 2006 15:27:33 GMT
I am sorry I am a newbee in this sort of thing. I looked at the html
file.... but I still don't really know where/how I am supposed to put the
SyslogAppender. I don't want to change (if I can) the source files I would
only like to modify the log4j.properties file.... COuld you be so kind to
tell me how? Is it enough if I substitute the RollingFileAppender by
SyslogAppender?... I guess not!


-----Original Message-----
From: Tim Lucia [mailto:timlucia@yahoo.com]
Sent: martes, 24 de enero de 2006 16:14
To: 'Tomcat Users List'
Subject: RE: Log4J output to SYSLOG


http://logging.apache.org/log4j/docs/api/org/apache/log4j/net/SyslogAppender
.html 

-----Original Message-----
From: Bachler, Elisabeth (Elisabeth) [mailto:ebachler@lucent.com] 
Sent: Tuesday, January 24, 2006 10:04 AM
To: 'Tomcat Users List'
Subject: Log4J output to SYSLOG

Hello,
I am using "Apache Tomcat Version 5.5.12". I  have designed a web
application. I am using log4j to output messages in a log. But now, I would
like to output the log4j message to the SYSLOG. 
What should I do?
THanks


The log4j.properties file is as follows:

log4j.rootLogger=debug, R

log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=${catalina.home}/logs/tomcat.log
log4j.appender.R.MaxFileSize=10MB
log4j.appender.R.MaxBackupIndex=10

log4j.appender.R.layout=org.apache.log4j.PatternLayout

log4j.appender.R.layout.ConversionPattern=%d{dd-MM-yyyy HH:mm:ss}  %-5p
(%C:%M:%L) - %m%n

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


-

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




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

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


Mime
View raw message