Should it be possible to set logging levels through environment variables alone in a Spring Boot application?
I don\'t want to use application.properties
Here's an example using Logback with Janino to conditionally include different logging configs via properties or environmental variables... The base config, logback.xml is using conditionals for development console logging or production file logging... just drop the following files in /resources/
logback.xml
dev.xml
utf-8
%-30([%p] [%c:%L]) » %m%n%rEx
true
pro.xml
FILE_NAME_PATTERN
7
${FILE_LOG_PATTERN}
512