i added some code inside Global.scala, and application.conf application.global=Global
object Global extends WithFilters(new GzipFilter()) with GlobalSettings {
override def onStart(app: Application) {
Logger.info("Application started.")
}
override def onStop(app: Application) {
Logger.info("Application shutdown...")
}
}
Why run 3 times in conole ?
[info] application - Application started.
[info] application - Application started.
[info] application - Application started.
[info] wobo - Application started (Dev)
[WARN] [10/21/2013 15:54:50.591] [New I/O worker #1] [EventStream(akka://play)]akka.event-handlers] config is deprecated, use [akka.loggers]
[info] application - Application shutdown...
[info] application - Application shutdown...
[info] application - Application shutdown...