Use log level config in application.yml
This commit is contained in:
11
sample.groovy
Normal file
11
sample.groovy
Normal 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"
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user