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> </encoder>
</appender> </appender>
<root level="WARN"> <logger name="org.springframework.security" level="${sec.log.level}:-WARN"/>
<root level="${root.level}:-WARN">
<appender-ref ref="STDOUT" /> <appender-ref ref="STDOUT" />
</root> </root>

View File

@ -5,9 +5,11 @@
</encoder> </encoder>
</appender> </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" /> <appender-ref ref="STDOUT" />
</root> </root>

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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