Two Laptop Bag*
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: 18541
    
    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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: eclipse jee cannot create log file with log4j in webproject
 
Similar Threads
Any body use Log4J with Tomcat?
Log4j : specific class to log on FileAppender other classes log on Console Appender.
log4j config file setup
what is wrong with log4j configration
How to monitor log file in jboss for sending mails,when error or excetion found in log