Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

log4j not working in Weblogic 9.2

 
Venkata Sirish
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ranchers,

I have deployed a struts application on Weblogic 9.2 server. I'am using log4j.properties file placed in the application class path(under WEB-INF/classes) folder.

Here is a snippet of content in log4j.properties.

#### This appender writes all log statements with level >= WARN
log4j.appender.warn=org.apache.log4j.RollingFileAppender
log4j.appender.warn.Threshold=WARN
log4j.appender.warn.File=c:/logs/log_warn.log
log4j.appender.warn.layout=org.apache.log4j.PatternLayout
log4j.appender.warn.layout.ConversionPattern=[%d{ISO8601}] %5p [%t] (%M:%F:%L) %x: - %m%n
#log4j.appender.warn.DatePattern='.'yyyy-MM-dd
# Control the maximum log file size
log4j.appender.warn.MaxFileSize=5000KB
# Archive log files (one backup file here)
log4j.appender.warn.MaxBackupIndex=100

----------------

The above approach works fine in tomcat server, but it is not working on weblogic server.


I mean log4j is not writing the loggers into 'log_warn.log' file.
Will weblogic server writes to any other logger file instead.


Thanks for your time in advance,
Venkat
 
Misha Ver
Ranch Hand
Posts: 470
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would check WL logs
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic