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:[EMAIL PROTECTED]
Sent: Tuesday, November 22, 2005 6:25 PM
To: Tomcat Users List; [EMAIL PROTECTED]
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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>




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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to