• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

using and configuring log4j in my application

Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • 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
"I know this defies the law of gravity... but I never studied law." -B. Bunny Defiant tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!