• 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Al Hobbs
  • Piet Souris
  • Himai Minh

using and configuring log4j in my application

Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't know if it is a right place to put my query still...

i have a java web application. i want to use log4j for error handling purpose.
but i don't know where to put the required file...can any one please help me with step by step process of how to use it?? i am using netbeans.

i tried creating a properties file and copied the contenet searched from net in log4j.properties file. as


i have put this file in the src folder of my project generated by netbeans. there is no build folder generated till now.

i have put the log4j.jar file in my application folder..Try1...where other folders like src,test,web,nbproject folder and build.xml file is there.

then i created a sample java file LogClass.java as


but here it gives an errror at importing package line.....that is at..

saying the org.apache.log4j doesnot exist.

can any one please help me where i am going wrong. I am using Tomcat as a web server
Can you really tell me that we aren't dealing with suspicious baked goods? And then there is this tiny ad:
Garden Master Course kickstarter
    Bookmark Topic Watch Topic
  • New Topic