Polish "Polish formatting of log configuration file"

See gh-43322
This commit is contained in:
Stéphane Nicoll 2024-12-04 10:33:58 +01:00
parent 3f17e42b38
commit cc274ccdca
12 changed files with 20 additions and 20 deletions

View File

@ -6,6 +6,6 @@
</encoder> </encoder>
</appender> </appender>
<root level="INFO"> <root level="INFO">
<appender-ref ref="CONSOLE" /> <appender-ref ref="CONSOLE"/>
</root> </root>
</configuration> </configuration>

View File

@ -1,5 +1,5 @@
<included> <included>
<springProfile name="production"> <springProfile name="production">
<logger name="org.springframework.boot.logging.logback" level="TRACE" /> <logger name="org.springframework.boot.logging.logback" level="TRACE"/>
</springProfile> </springProfile>
</included> </included>

View File

@ -1,3 +1,3 @@
<included> <included>
<springProperty scope="context" name="MINE" source="my.example-property" defaultValue="default-test" /> <springProperty scope="context" name="MINE" source="my.example-property" defaultValue="default-test"/>
</included> </included>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<configuration> <configuration>
<include resource="org/springframework/boot/logging/logback/base.xml" /> <include resource="org/springframework/boot/logging/logback/base.xml"/>
<springProfile name="production, test"> <springProfile name="production, test">
<logger name="org.springframework.boot.logging.logback" level="TRACE" /> <logger name="org.springframework.boot.logging.logback" level="TRACE"/>
</springProfile> </springProfile>
</configuration> </configuration>

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<configuration> <configuration>
<include resource="org/springframework/boot/logging/logback/base.xml" /> <include resource="org/springframework/boot/logging/logback/base.xml"/>
<springProfile name="outer"> <springProfile name="outer">
<springProfile name="inner"> <springProfile name="inner">
<logger name="org.springframework.boot.logging.logback" level="TRACE" /> <logger name="org.springframework.boot.logging.logback" level="TRACE"/>
</springProfile> </springProfile>
</springProfile> </springProfile>
</configuration> </configuration>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<configuration> <configuration>
<include resource="org/springframework/boot/logging/logback/base.xml" /> <include resource="org/springframework/boot/logging/logback/base.xml"/>
<springProfile name="production"> <springProfile name="production">
<logger name="org.springframework.boot.logging.logback" level="TRACE" /> <logger name="org.springframework.boot.logging.logback" level="TRACE"/>
</springProfile> </springProfile>
</configuration> </configuration>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<configuration> <configuration>
<include resource="org/springframework/boot/logging/logback/base.xml" /> <include resource="org/springframework/boot/logging/logback/base.xml"/>
<springProfile name="production | test"> <springProfile name="production | test">
<logger name="org.springframework.boot.logging.logback" level="TRACE" /> <logger name="org.springframework.boot.logging.logback" level="TRACE"/>
</springProfile> </springProfile>
</configuration> </configuration>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<configuration> <configuration>
<include resource="org/springframework/boot/logging/logback/base.xml" /> <include resource="org/springframework/boot/logging/logback/base.xml"/>
<include resource="org/springframework/boot/logging/logback/include-with-profile.xml" /> <include resource="org/springframework/boot/logging/logback/include-with-profile.xml"/>
</configuration> </configuration>

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<configuration> <configuration>
<include resource="org/springframework/boot/logging/logback/base.xml" /> <include resource="org/springframework/boot/logging/logback/base.xml"/>
<springProperty scope="context" name="SIMPLE" source="testpropertyfoobar" defaultValue="foo"/> <springProperty scope="context" name="SIMPLE" source="testpropertyfoobar" defaultValue="foo"/>
<springProperty scope="context" name="MINE" source="my.example-property" defaultValue="bar"/> <springProperty scope="context" name="MINE" source="my.example-property" defaultValue="bar"/>
</configuration> </configuration>

View File

@ -1,10 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<configuration> <configuration>
<include resource="org/springframework/boot/logging/logback/base.xml" /> <include resource="org/springframework/boot/logging/logback/base.xml"/>
<springProperty scope="context" name="MINE" source="my.example-property" /> <springProperty scope="context" name="MINE" source="my.example-property"/>
<if condition='property("MINE").contains("true")'> <if condition='property("MINE").contains("true")'>
<then> <then>
<variable scope="context" name="MYCHECK" value="i-was-included" /> <variable scope="context" name="MYCHECK" value="i-was-included"/>
</then> </then>
</if> </if>
</configuration> </configuration>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<configuration> <configuration>
<include resource="org/springframework/boot/logging/logback/base.xml" /> <include resource="org/springframework/boot/logging/logback/base.xml"/>
<include resource="org/springframework/boot/logging/logback/include-with-property.xml" /> <include resource="org/springframework/boot/logging/logback/include-with-property.xml"/>
</configuration> </configuration>

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<configuration> <configuration>
<include resource="org/springframework/boot/logging/logback/base.xml" /> <include resource="org/springframework/boot/logging/logback/base.xml"/>
<springProperty scope="context" name="SIMPLE" source="testpropertyfoobar"/> <springProperty scope="context" name="SIMPLE" source="testpropertyfoobar"/>
<springProperty scope="context" name="MINE" source="my.example-property"/> <springProperty scope="context" name="MINE" source="my.example-property"/>
</configuration> </configuration>