Can I configure the runtime logging level on the WebSphere 7 application server through the "Logging and tracing" menu?
I am using slf4j-log4j12 and jcl-over-slf4j.
For example, I have log4j.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration PUBLIC "-//LOGGER" "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="console" class="org.apache.log4j.ConsoleAppender">
<param name="Target" value="System.out" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%-5p: %c - %m%n" />
</layout>
</appender>
<root>
<priority value="TRACE" />
<appender-ref ref="console" />
</root>
</log4j:configuration>
This log4j configuration prints a lot of debugging and tracing information in the SystemOut.log file. For example:
[10/21/13 16: 31:18: 141 FET] 0000001a SystemOut O DEBUG: org.springframework.core.convert.support.GenericConversionService - '10/21/14 ' [10/21/13 16: 31:18: 141 FET] 0000001a SystemOut O TRACE: org.springframework.core.convert.support.GenericConversionService - , java.lang.String @org.springframework.format. annotation.DateTimeFormat @javax.validation.constraints.Future java.util.Date
, :
org.springframework.*=info
-.