diff options
Diffstat (limited to 'kamon-core')
-rw-r--r-- | kamon-core/src/main/scala/kamon/Kamon.scala | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/kamon-core/src/main/scala/kamon/Kamon.scala b/kamon-core/src/main/scala/kamon/Kamon.scala index b72e8fea..eb0b56ef 100644 --- a/kamon-core/src/main/scala/kamon/Kamon.scala +++ b/kamon-core/src/main/scala/kamon/Kamon.scala @@ -16,9 +16,14 @@ package kamon import akka.actor._ +import akka.event.Logging.Info object Kamon { - trait Extension extends akka.actor.Extension + trait Extension extends akka.actor.Extension { + def publishInfoMessage(system: ActorSystem, msg: String): Unit = { + system.eventStream.publish(Info("", classOf[Extension], msg)) + } + } def apply[T <: Extension](key: ExtensionId[T])(implicit system: ActorSystem): T = key(system) } |