File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes eclipse jee cannot create log file with log4j in webproject Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "eclipse jee cannot create log file with log4j in webproject" Watch "eclipse jee cannot create log file with log4j in webproject" New topic
Author

eclipse jee cannot create log file with log4j in webproject

oussama jlassi
Greenhorn

Joined: Dec 23, 2011
Posts: 25
i use eclipse jee Indigo tomcat6 and apache log4j1.2.16
i defined logger in servlet i put the jar in the lib folder and the xml configuration file in src folder
and i want html log in WebContent folder
when i run my web project it do not generate html log file and nothing it changing when i refresh but it display the message in the console
[http-80-2] INFO pkg.log - My message


log4j.xml

Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18570
    
    8

oussama jlassi wrote:and i want html log in WebContent folder


Then you should specify that in the configuration file. The file you posted shows you specified that the HTML log file should be put into the server's current working directory. This is certain to NOT be anything to do with your web application.
oussama jlassi
Greenhorn

Joined: Dec 23, 2011
Posts: 25
how then change file path for log4j save it in eclipse workspace\webproject\WebContent
 
jQuery in Action, 2nd edition
 
subject: eclipse jee cannot create log file with log4j in webproject