This week's book giveaway is in the Programmer Certification forum. We're giving away four copies of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
The issue may be more setting up log4j in an application... Look at http://logging.apache.org/log4j/ for documents and download. Basicly 1) put log4j.jar in your app classpath (ear/war file) 2) create a log4j.properties in the classpath too 3) use of the log4j API in your code...
Not only adding log4j work. In your servlet init method you have to load it in memory either by using Propertyconfigurator or if you are using log4j.xml file then DomConfigurator but in this case you also need to add dom api in your classpath.
Iam trying like that.but my application is working correctly.but is not writing any log messages.i have placed lo4j-1.2.11 in d:\bea\weblogic700\common\lib\log4j-1.2.11.jarand placed properties file in my application and in init() i have written PropertyConfigurator.configure(). but there is no result . kindly help me
posted 14 years ago
i have placed log4j-1.2.11.jar in lib directory of my application the server giving message that subr.properties cannot be found. can you tell me where to place properties file
If you are using a wood chipper, you are doing it wrong. Even on this tiny ad: