• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

eclipse jee cannot create log file with log4j in webproject

 
oussama jlassi
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 21111
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how then change file path for log4j save it in eclipse workspace\webproject\WebContent
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic