logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Chang <thomas200...@yahoo.de>
Subject A question about log4j and the location of "log4j.properties" in a web application
Date Sat, 26 Jan 2008 15:07:20 GMT
Hi all,
 
  I use maven2 to build a webapp. I want to use the log4j. The dir-structure looks as follow:
   
  MyWeb/
    /src
       /main
          /java
          /res
       /webapp
          /WEB-INF
   
  Now I have two questons:
  
1.
Where should I put the "log4j.properties"? I think it should be under /webapp//WEB-INF?
 
2.
How can the program find this file (I mean how to write in the java)?
 
Regards
 
Thomas


       
---------------------------------
Ihr erstes Baby? Holen Sie sich Tipps von anderen Eltern.
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message