Configure logback config from Play application.conf

(Joost Den Boer) #1

I don’t understand why Play’s default LogbackLoggerConfigurator class does not support setting logback source configuration in Play’s own application.conf. With everyone going microservices and Docker, setting a specific Logback config this way, or via an environment variable (which is supported by the application.conf) is way easier than setting it via properties or ‘-D’.
Now I have to implement my own logging configurator to do this.

So what I would like is to set the logback config file via the application.conf using keys like logback.logger.resource',logback.logger.file’ and `logback.logger.url’ just like the current supported properties.

Would this be a nice addition to Play’s current configurator?
I don’t mind creating a pull-request for this. I just want to know upfront it is worth spending time on.