• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

eclipse jee cannot create log file with log4j in webproject

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
how then change file path for log4j save it in eclipse workspace\webproject\WebContent
 
reply
    Bookmark Topic Watch Topic
  • New Topic