mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-28 21:19:02 +00:00
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
9 lines
293 B
XML
9 lines
293 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<configuration>
|
|
<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>
|