I am writing a Spring Boot application and need the flexibility of managing my log configuration with Groovy. In Spring, download all I have to do is create src / main / resources / logback.groovy and it is automatically used for configuration.
What I would like to do starts with the Spring boot default boot configuration and simply overrides or changes the settings as needed.
If I used logback.xml instead of logback.groovy, I could do something like the following.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<include resource="org/springframework/boot/logging/logback/base.xml"/>
<logger name="org.springframework.web" level="DEBUG"/>
</configuration>
Is there something similar to the include line above that I can use in logback.groovy? I can look at the contents of base.xml and other files to see how to manually replicate them, but this will add some template code that I would like to avoid.
Thanks for any help you can provide.
source
share