could someone tell me how to set the log file using commons logging ? i went through the site http://jakarta.apache.org/commons/logging/index.html but i didnt not find anything good for me there . Am i missing anything ? I just want to write the log details to c:\mylog.log when i execute my java program.
create a log4j.properties file ****************************** log4j.rootCategory=INFO, dest #specify the destination file log4j.appender.dest=org.apache.log4j.RollingFileAppender #specify the destination where you want to display your messages log4j.appender.dest.File=C:/mylogfile
hope this will help you!
God Gave Me Nothing I Wanted<br />He Gave Me Everything I Needed<br /> - Swami Vivekananda
Joined: Aug 27, 2002
Thanks Jigar / Minu..
I was having the feeling that common-logging is just another tool like log4j. I was in hurry and was checking the tutorial for setting up the property files.. my bad! Thanks again to point me to the right direction.