EngineerBetter_DJ EngineerBetter_DJ - 1 year ago 106
Java Question

Set Logging Level in Spring Boot via Environment Variable

Should it be possible to set logging levels through environment variables alone in a Spring Boot application?

I don't want to use
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
but that has no effect. Putting TRACE
does work though.

Answer Source

This is just an idea, but did you try setting

Theoretically, this way will be passed as default JVM argument and should affect every JVM instance in your environment.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download