There's a Log4j1.2.8..jar on directories:
 
CATALINA_HOME/common/classes   (1)
and
WEB-INF/lib   (2)
 
There's a file Log4J.XML only on:
WEB-INF/classes/..../etc  (3)
 
And I setup the classpath to look to (3), so I think this should be the reason why it 
picks the webapp Log4J.XML. 
 
More questions arise:
 
1. If If move Log4J.XML from (3) to WEB-INF/class the Tomcat log works normal, but not 
the webaap log's, it's seems it can't find the file.
 
2. Even if it's using the WebApp Log4J.XML from my webapp, in this I set the root 
level to WARN, so why no messages on Tomcat Log ?

Jacob Kjome <[EMAIL PROTECTED]> wrote:
Where did you put the log4j.xml file? Is it in WEB-INF/classes or is it 
somewhere like CATALINA_HOME/common/classes? If the latter and log4j.jar 
is in common/lib, then this is exactly the behavior one would expect. Make 
sure you put log4j.xml in WEB-INF/classes and log4j.jar in WEB-INF/lib of 
each and every webapp.

Jake

At 01:22 PM 7/29/2004 -0300, you wrote:
>Hi
>
>I'm using Tomcat 5.0.18 and I would like to customize the Log4J messages 
>on the packages of a Webapp.
>
>Well, I created a file Log4J.XML and it's the Classpath. The file has been 
>loading correctly and the log messages from my Webapp classes are going fine.
>
>The problem is that the messages from Tomcat, like one's on startup or 
>when reloading a Context don't happen anymore.
>
>There's a copy of the file below.
>
>Does anyone knows why ?
>
>Thankx
>
>-----------------------------------
>Ivan de Aguirre
>Java Developer
>CpQD - www.cpqd.com.br
>
>
>Log4J.XML
>
>
>
>
>
> 
> 

> 
> 

> 
> 
>
> 
> 
> 
> 
>
> 
> 

> 
> 
>
>
>
>
>---------------------------------
>Yahoo! Mail agora ainda melhor: 100MB, anti-spam e antivírus grátis!


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


                
---------------------------------
Yahoo! Mail agora ainda melhor: 100MB, anti-spam e antivírus grátis!

Reply via email to