This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

commons-logging with LOG4J LOGGER

 
siva kumar
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to configure the commons-logging for JOBSS.

I'M HAVINg commons-logging.properties and log4j.properties under WEB-INF\CLASSES.i'm using the RollingFileAppender.but the logging messages are displayed on the console window.
here the two properties file.
//commons-logging.properties
org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger
log4j.configuration=log4j.properties
//log4j.properties

log4j.rootLogger=DEBUG,R
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=c:/logfile.log
log4j.appender.R.MaxFileSize=500kB
log4j.appender.R.MaxBackupIndex=10
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%d{ISO8601} %p %c[%t] - %m%n
log4j.appender.R.append=true
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic