This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes BEA/Weblogic and the fly likes BEA 7.0 & log4j Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "BEA 7.0 & log4j" Watch "BEA 7.0 & log4j" New topic
Author

BEA 7.0 & log4j

Peru Sankar
Greenhorn

Joined: Mar 04, 2003
Posts: 1
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?


Peru
 
 
subject: BEA 7.0 & log4j
 
Similar Threads
Logger don't write info and debug in Log file
Is there a way to rewrite log files in log4j with each run of the code?
log to differnt files
log4j writing to multiple log
log4j file logging problem