This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Dear all, I wanted a simple thing from my application. Seperate levels of logging should be logged in seperate files. I did post about this in one another place tho. After a lot of readin, I figrured that filters can only be used in an XML file I made an XMl file and a java class to test it. Alas, I am still getting errors. here are the details :
Is log4j-x.x.jar present in the classpath during runtime ?
Yes it is. Logging as such works fine if I use a simple properties file and append all levels into one single file. Of course,thats not what I want. Since filters are the only way I can append into different files, and filters are possible only with an xml file. I am using the above, and having problems Has anyone tried to do this (seperate levels of logs into seperate log files)? If yes please let me know the approach for this. thanks in advance
Why is that giving java.lang.ClassNotFoundException: org.apache.log4j.PatternLayout if the classes are present in the classpath ?
Good Question. Just that .. I dont know. May be I will do a fresh download and set afresh the classpath. Could some body use this code on their machine and let me know if it works there. I am still stuck with this without any clue. Please help.