This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes BEA/Weblogic and the fly likes log4j not working in Weblogic 9.2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "log4j not working in Weblogic 9.2" Watch "log4j not working in Weblogic 9.2" New topic

log4j not working in Weblogic 9.2

Venkata Sirish
Ranch Hand

Joined: Apr 09, 2007
Posts: 112
Hi ranchers,

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

Here is a snippet of content in

#### This appender writes all log statements with level >= WARN
log4j.appender.warn.layout.ConversionPattern=[%d{ISO8601}] %5p [%t] (%M:%F:%L) %x: - %m%n
# Control the maximum log file size
# Archive log files (one backup file here)


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,
Misha Ver
Ranch Hand

Joined: Mar 03, 2008
Posts: 470
I would check WL logs
I agree. Here's the link:
subject: log4j not working in Weblogic 9.2
It's not a secret anymore!