Enable parameterization for log levels in logback files to allow the use of command-line options for controlling log output.

This commit is contained in:
Luke Taylor 2010-08-24 18:24:19 +01:00
parent c1418c7536
commit bdb906e588
10 changed files with 28 additions and 11 deletions

View File

@ -5,7 +5,9 @@
</encoder>
</appender>
<root level="WARN">
<logger name="org.springframework.security" level="${sec.log.level}:-WARN"/>
<root level="${root.level}:-WARN">
<appender-ref ref="STDOUT" />
</root>

View File

@ -5,9 +5,11 @@
</encoder>
</appender>
<logger name="org.apache.directory" level="WARN"/>
<logger name="org.springframework.security" level="${sec.log.level}:-WARN"/>
<root level="WARN">
<logger name="org.apache.directory" level="ERROR"/>
<root level="${root.level}:-WARN">
<appender-ref ref="STDOUT" />
</root>

View File

@ -5,7 +5,9 @@
</encoder>
</appender>
<root level="WARN">
<logger name="org.springframework.security" level="${sec.log.level}:-WARN"/>
<root level="${root.level}:-WARN">
<appender-ref ref="STDOUT" />
</root>

View File

@ -5,9 +5,10 @@
</encoder>
</appender>
<logger name="org.springframework.security" level="${sec.log.level}:-WARN"/>
<logger name="org.apache.directory" level="ERROR"/>
<root level="WARN">
<root level="${root.level}:-WARN">
<appender-ref ref="STDOUT" />
</root>

View File

@ -5,9 +5,10 @@
</encoder>
</appender>
<logger name="org.springframework.security" level="${sec.log.level}:-WARN"/>
<logger name="org.apache.directory" level="ERROR"/>
<root level="WARN">
<root level="${root.level}:-WARN">
<appender-ref ref="STDOUT" />
</root>

View File

@ -5,9 +5,10 @@
</encoder>
</appender>
<logger name="org.springframework.security" level="${sec.log.level}:-WARN"/>
<logger name="org.apache.directory" level="ERROR"/>
<root level="WARN">
<root level="${root.level}:-WARN">
<appender-ref ref="STDOUT" />
</root>

View File

@ -5,7 +5,9 @@
</encoder>
</appender>
<root level="WARN">
<logger name="org.springframework.security" level="${sec.log.level}:-WARN"/>
<root level="${root.level}:-WARN">
<appender-ref ref="STDOUT" />
</root>

View File

@ -5,7 +5,9 @@
</encoder>
</appender>
<root level="WARN">
<logger name="org.springframework.security" level="${sec.log.level}:-WARN"/>
<root level="${root.level}:-WARN">
<appender-ref ref="STDOUT" />
</root>

View File

@ -5,7 +5,9 @@
</encoder>
</appender>
<root level="WARN">
<logger name="org.springframework.security" level="${sec.log.level}:-WARN"/>
<root level="${root.level}:-WARN">
<appender-ref ref="STDOUT" />
</root>

View File

@ -5,7 +5,9 @@
</encoder>
</appender>
<root level="WARN">
<logger name="org.springframework.security" level="${sec.log.level}:-WARN"/>
<root level="${root.level}:-WARN">
<appender-ref ref="STDOUT" />
</root>