tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nehal Sangoi" <nehal.san...@patni.com>
Subject RE: enable log4j
Date Tue, 22 Nov 2005 13:14:26 GMT
Hi Dhaval,

I want to enable log4j in debug mode only for one of the tomcat instances
which is running using different user -- i.e. other than tomcat-base.
This means, i don't want to apply log4j on all tomcat instaces by
implemeting it onto tomcat-base.

-----Original Message-----
From: Dhaval Patel [mailto:dhaval04@yahoo.com]
Sent: Tuesday, November 22, 2005 6:25 PM
To: Tomcat Users List; nehal.sangoi@patni.com
Subject: Re: enable log4j


Hi Nehal,

   Do you want to enable log4j in your application or you want to enable
log4j
inside tomcat? Inside tomcat means, tomcat uses log4j instead of J2SE
logging
utility so that you can configure tomcat loggin in log4j.

Regards,
D

--- Nehal Sangoi <nehal.sangoi@patni.com> wrote:

>
> Hi,
>
> I want to enable log4j logger in one of my tomcat instances. I copied
> "log4j-1.2.12.jar" to my webapps - war file.
> This means, under WEB-INF/lib, copied jar file and under WEB-INF/classes,
> copied log4j.properties. Later, re-sreated warfile and started my tomcat
> instance.
>
> log4j.properties :
>
> log4j.rootLogger=debug, R
> log4j.appender.R=org.apache.log4j.RollingFileAppender
> log4j.appender.R.File=${catalina.base}/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=%p %t %c - %m%n
> log4j.logger.org.apache.catalina=DEBUG, R
>
> Also, notice that i have tomcat 5.5.9 on solaris 10. But my jar file is
> log4j-1.2.12.jar.
>
> Is there anything 'm doing wrong or incomplete?....
>
> Please help as soon as possible....
>
> Thanks.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>




__________________________________
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com

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