最佳答案
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
as I'm running on Cloud Foundry and want to pick up changes without a deploy (but after the app has restarted, or restaged to be more precise).
I've tried setting env vars like LOGGING_LEVEL_ORG_SPRINGFRAMEWORK=TRACE
but that has no effect. Putting logging.level.org.springframework: TRACE
in application.properties
does work though.