Thursday, July 28, 2011

Environment specific logback configuration

Here is an example for an environment specific logback configuration. Unless there is an environment variable with a value of "prd" or "stg", log level is set to debug; otherwise it is set to warn.

1 comment:

  1. Hi Kaan,

    Very good idea to remember this useful but little-known functionality.
    Please note that conditional processing requires the Janino library as explained here:

    http://logback.qos.ch/setup.html#janino

    Cheers,

    Domenico

    ReplyDelete