Posted By:
steve_beech
Posted On:
Wednesday, December 10, 2003 07:41 AM
Nidhi,
Did you manage to resolve this?
I'm having a similar problem - I've been using commons logging with SimpleLog and now want to use log4j - however I only seem able to log to the console and not to the file specified in my log4j.properties file:
log4j.rootLogger=DEBUG, rolling
log4j.appender.rolling=org.apache.log4j.RollingFileAppender
log4j.appender.rolling.File=output.loglog4j.appender.rolling.MaxFileSize=100KB
log4j.appender.rolling.MaxBackupIndex=1
log4j.appender.rolling.layout=org.apache.log4j.SimpleLayout
I'm using Websphere so am not sure exactly where to put the properties files for commons and log4j.
Here is my commons-logging.properties file:
org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JCategoryLog
Any thoughts?