Skip to end of metadata
Go to start of metadata

I'm mostly documenting this so I can stop looking in the source....

Logback logging can be set at run-time via environment variables.  This is primary useful in docker-compose files to enable logging in a given instance.  The env variables override any other logging set by the file included on the classpath.

At startup, the logback.groovy file will look for any environment variables that start with LOGBACK_ . The value of the variables must be:  


If level is omitted it defaults to DEBUG.

For example, in a docker-compose.override.yml file:

    - LOGBACK_A1=org.apache.axis.EXCEPTIONS    
    - LOGBACK_S1=org.springframework,INFO
  • No labels