Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

BEA 7.0 & log4j

 
Peru Sankar
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is my commons-logging.properties file:
org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JCategoryLog
This is my log4j.properties file:
# log4j configuration file
log4j.debug=true
log4j.rootCategory=ERROR, rolling
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n
log4j.appender.rolling=org.apache.log4j.RollingFileAppender
log4j.appender.rolling.File=c:\\backoffice.log
log4j.appender.rolling.MaxFileSize=2KB
log4j.appender.rolling.MaxBackupIndex=5
log4j.appender.rolling.layout=org.apache.log4j.PatternLayout
log4j.appender.rolling.layout.ConversionPattern=%d{MM/dd/yy hh:mm:ss a } %-5p %c - %m%n
When i run web application it wirtes to an bea console but does not generate c:\\backoffice.log.
Any Suggestions?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic