In Play 1, I could write a class that extends PlayPlugin and do something like this:
@Override
public void onConfigurationRead() {
Play.configuration.put("logger.application","DEBUG");
}
I don't see how to do the equivalent in Play 2. The Plugin interface no longer has the "on ConfigurationRead" method. I'm not sure if it's safe to do this in onApplicationStart, and even if it was, I'm not seeing how to modify the Play.configuration object in Scala.
What you're seeking for seems now to be located in GlobalSettings
, here is the wiki page
Extending it, you'll be able to change the configuration or whatever global settings you want to override (Bad Requests redirect or message for instance.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With