Use log level config in application.yml

This commit is contained in:
Dave Syer
2014-06-27 17:00:32 +01:00
parent 841815abcc
commit 09fd8d5880
3 changed files with 16 additions and 7 deletions

11
sample.groovy Normal file
View File

@@ -0,0 +1,11 @@
package demo
@Grab('org.springframework.platform:spring-platform-config-client:1.0.0.BUILD-SNAPSHOT')
@Grab('spring-boot-starter-actuator')
@RestController
class Application {
@RequestMapping("/")
String home() {
"Hello World"
}
}

View File

@@ -2,4 +2,8 @@ info:
component: Config Samples
endpoints:
restart:
enabled: true
enabled: true
logging:
levels:
org.springframework.boot.env.PropertySourcesLoader: TRACE
org.springframework.web: DEBUG

View File

@@ -1,6 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<include resource="org/springframework/boot/logging/logback/base.xml"/>
<logger name="org.springframework.boot.env.PropertySourcesLoader" level="TRACE"/>
<!-- logger name="org.springframework.security" level="DEBUG"/-->
</configuration>