I deploy a war file with the following content.
WEB-INF:
        classes:
           contains the log4j.properties file in the root directory. Only
one        exists.
        lib:
           contains the log4j-1.2.9.jar not in any other directory

my web.xml contains

<context-param>
    <param-name>log4jConfigLocation</param-name>
    <param-value>classpath:log4j.properties</param-value>
  </context-param>

I hope that's the information you ask for!
thanks
marc

-----Ursprüngliche Nachricht-----
Von: Rainer Jung [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 21. Mai 2007 13:27
An: Tomcat Users List
Betreff: Re: logging log4j of my application

How do you deploy the log4j Jar? Which place? Several places?

Where do you keep your log4j configuration file? One file, several ones?

Which mechanism did you choose to publish the files to log4j?

The questions concerning "several" always mean: are those things only in 
your webapp, or also added to the container installation?

Depending on the answers, it's relatively easy (after understanding 
tomcat class loaders and log4j default configuration mechanisms) to 
explain, which config gets evaluated and why.

Regards,

Rainer

Marc Rameder wrote:
> Hi
> 
> I have a problem with tomcat 5.5.20. My application uses log4j 1.2.9 and I
> am sure that all my implementation is correct because I uses JUnit and the
> logging works fine with it. However, Tomcat loads my log4j.properties so
the
> configuration of the web.xml should be right. 
> I know that because the log file is created but it contains no entries.
> Moreover my log4j.properties is used in other projects without tomcat and
> works file. 
>  
> Is there a special configuration of the tomcat?
> 
> Thanks
> marc

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to