diff options
author | Diego <diegolparra@gmail.com> | 2014-08-05 23:58:45 -0300 |
---|---|---|
committer | Diego <diegolparra@gmail.com> | 2014-08-05 23:58:45 -0300 |
commit | 9878f62c88738ca056202f71f1725b34a109b77e (patch) | |
tree | 2e520318649c8ec867403675172442f4a5d37cf4 /kamon-play/src/main/scala | |
parent | 26865a62805a008f5d648cef5f64a295054ed3f5 (diff) | |
download | Kamon-9878f62c88738ca056202f71f1725b34a109b77e.tar.gz Kamon-9878f62c88738ca056202f71f1725b34a109b77e.tar.bz2 Kamon-9878f62c88738ca056202f71f1725b34a109b77e.zip |
+ play-example: included UserMetrics, LogReporter and SystemMetrics extensions
Diffstat (limited to 'kamon-play/src/main/scala')
-rw-r--r-- | kamon-play/src/main/scala/kamon/play/Play.scala | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/kamon-play/src/main/scala/kamon/play/Play.scala b/kamon-play/src/main/scala/kamon/play/Play.scala index 03436458..7b8777e0 100644 --- a/kamon-play/src/main/scala/kamon/play/Play.scala +++ b/kamon-play/src/main/scala/kamon/play/Play.scala @@ -16,7 +16,8 @@ package kamon.play -import akka.actor.{ ExtendedActorSystem, Extension, ExtensionIdProvider, ExtensionId } +import akka.actor.{ ExtendedActorSystem, Extension, ExtensionId, ExtensionIdProvider } +import akka.event.Logging import kamon.Kamon import kamon.http.HttpServerMetrics import kamon.metric.Metrics @@ -27,7 +28,8 @@ object Play extends ExtensionId[PlayExtension] with ExtensionIdProvider { } class PlayExtension(private val system: ExtendedActorSystem) extends Kamon.Extension { - publishInfoMessage(system, "Play Extension Loaded!!") + val log = Logging(system, classOf[PlayExtension]) + log.info(s"Starting the Kamon(Play) extension") private val config = system.settings.config.getConfig("kamon.play") |