File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes using and configuring log4j in my application 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 "using and configuring log4j in my application" Watch "using and configuring log4j in my application" New topic
Author

using and configuring log4j in my application

rammie singh
Ranch Hand

Joined: Mar 26, 2009
Posts: 116
Hi..
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

log4j.properties



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

LogClass.java



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 agree. Here's the link: http://aspose.com/file-tools
 
subject: using and configuring log4j in my application
 
Similar Threads
Need help with log4j logging tool to log into database
Struts Logging
log4j:WARN No appenders could be found for logger (LogClass)
problem using log4j with eclipse and glassfish
log4j:WARN No appenders could be found for logger (log4jexample.LogExample).