diff options
author | Ivan Topolnak <ivantopo@gmail.com> | 2013-08-07 19:06:33 -0300 |
---|---|---|
committer | Ivan Topolnak <ivantopo@gmail.com> | 2013-08-07 19:06:33 -0300 |
commit | 923b88e8adef2f66b43e551fa4a0a1bbae5af7ff (patch) | |
tree | d555199f0c63b690ec51805b496ee2d54eb014da /kamon-uow/src/main/scala/kamon/logging/UowActorLogging.scala | |
parent | 1e6665e30d96772eab92aca4d23e176adcd88dc5 (diff) | |
download | Kamon-923b88e8adef2f66b43e551fa4a0a1bbae5af7ff.tar.gz Kamon-923b88e8adef2f66b43e551fa4a0a1bbae5af7ff.tar.bz2 Kamon-923b88e8adef2f66b43e551fa4a0a1bbae5af7ff.zip |
upgrading to akka 2.2
Diffstat (limited to 'kamon-uow/src/main/scala/kamon/logging/UowActorLogging.scala')
-rw-r--r-- | kamon-uow/src/main/scala/kamon/logging/UowActorLogging.scala | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/kamon-uow/src/main/scala/kamon/logging/UowActorLogging.scala b/kamon-uow/src/main/scala/kamon/logging/UowActorLogging.scala new file mode 100644 index 00000000..e117db1b --- /dev/null +++ b/kamon-uow/src/main/scala/kamon/logging/UowActorLogging.scala @@ -0,0 +1,14 @@ +package kamon.logging + +import akka.actor.Actor +import kamon.Kamon + +trait UowActorLogging { + self: Actor => + + def logWithUOW(text: String) = { + val uow = Kamon.context.map(_.userContext).getOrElse("NA") + println(s"=======>[$uow] - $text") + } + +} |