Support <springProfile> in logback configurations
Include support for a new <springProfile> element which can be used in `logback-spring.xml` files to selectively enable or disable parts of the configuration. For example: <configuration> ... <springProfile name="staging"> <logger name="sample.logback" level="TRACE" /> </springProfile> ... </configuration> Fixes gh-3338
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration>
|
||||
<include resource="org/springframework/boot/logging/logback/base.xml"/>
|
||||
<logger name="sample.logback" level="DEBUG"/>
|
||||
<include resource="org/springframework/boot/logging/logback/base.xml" />
|
||||
<logger name="sample.logback" level="DEBUG" />
|
||||
<springProfile name="staging">
|
||||
<logger name="sample.logback" level="TRACE" />
|
||||
</springProfile>
|
||||
</configuration>
|
||||
|
||||
Reference in New Issue
Block a user