These are chat archives for adamw/macwire

8th
Oct 2015
Renato Cavalcanti
@renatocaval
Oct 08 2015 15:00
Hi guys, do any of you have encountered issues play logging and macwire?
If I use this example: https://github.com/adamw/macwire#play24x, logging get muted
I don’t think the problem resides in macwire, but in extending Play’s ApplicationLoader
My impression is that somehow the logging configuration won't be loaded
Renato Cavalcanti
@renatocaval
Oct 08 2015 19:12
Ok, this it the trick
when using macwire with play, make sure you configure the logging as such:
class AppApplicationLoader extends ApplicationLoader {
  def load(context: Context) = {

    Logger.configure(context.environment)

    (new BuiltInComponentsFromContext(context) with AppComponents).application
  }
}
without that you’ll get nothing in your logs
will send a PR to the README file and example/play24