Set Logging Level in Spring Boot via Environment Variable

后端 未结 10 1017
刺人心
刺人心 2020-12-23 08:57

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

10条回答
  •  时光说笑
    2020-12-23 09:56

    Folks can anyone explain why this is not working?

    $ export LOGGING_LEVEL_COM_ACME=ERROR

    For all other configuration using environment variables as an override seems to work with no issues, for example:

    $ export EUREKA_CLIENT_ENABLED=false

    Thanks.

提交回复
热议问题