It's not a secret anymore!*
The moose likes BEA/Weblogic and the fly likes No debug log but has Info log, Spring MVC deployed to WL 12C Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "No debug log but has Info log, Spring MVC deployed to WL 12C" Watch "No debug log but has Info log, Spring MVC deployed to WL 12C" New topic
Author

No debug log but has Info log, Spring MVC deployed to WL 12C

Yan Zhou
Ranch Hand

Joined: Sep 02, 2003
Posts: 137
Hi there,

I built a simple Spring MVC app. and deployed to Weblogic 12c. In WL Console, I can see debug level Spring framework messages, but cannot see debug level application messages. I can see error level application messages, though.

I have configured WL12C to redirect stdout to log, set all log level to DEBUG, still no debug level application messages.

Why cannot I see debug level application messages? I am using JDK logging in WL, I do not think that matters. Here is my log4j.properties, it is packaged in my application war.

Thanks,
Yan

WEB-INF/classes/log4j.properties

log4j.rootLogger=DEBUG, STDOUT

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.STDOUT.threshold=DEBUG

log4j.logger.org.springframework=DEBUG
log4j.logger.com.medplus=DEBUG // this is my application package, no DEBUG seen in console output
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: No debug log but has Info log, Spring MVC deployed to WL 12C