diff options
author | Diego <diegolparra@gmail.com> | 2014-05-12 19:40:13 -0300 |
---|---|---|
committer | Diego <diegolparra@gmail.com> | 2014-05-12 19:40:13 -0300 |
commit | b758b4dd9146565bf827af70e755e9cd00c52ad0 (patch) | |
tree | fd0ba3e98439a92433865043a1f96353061eb5ab /kamon-core/src/main/scala/kamon/weaver | |
parent | ac5891539c69e6bc707c898de81cd66b21e95d3f (diff) | |
download | Kamon-b758b4dd9146565bf827af70e755e9cd00c52ad0.tar.gz Kamon-b758b4dd9146565bf827af70e755e9cd00c52ad0.tar.bz2 Kamon-b758b4dd9146565bf827af70e755e9cd00c52ad0.zip |
! core: added java.logging.Logger instead of slf4j in KamonWeaverMessageHandler and fixes #32
Diffstat (limited to 'kamon-core/src/main/scala/kamon/weaver')
-rw-r--r-- | kamon-core/src/main/scala/kamon/weaver/logging/KamonWeaverMessageHandler.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kamon-core/src/main/scala/kamon/weaver/logging/KamonWeaverMessageHandler.scala b/kamon-core/src/main/scala/kamon/weaver/logging/KamonWeaverMessageHandler.scala index bf047898..12f7f549 100644 --- a/kamon-core/src/main/scala/kamon/weaver/logging/KamonWeaverMessageHandler.scala +++ b/kamon-core/src/main/scala/kamon/weaver/logging/KamonWeaverMessageHandler.scala @@ -17,8 +17,8 @@ package kamon.weaver.logging import org.aspectj.bridge.{ IMessage, IMessageHandler } -import org.slf4j.LoggerFactory import com.typesafe.config.ConfigFactory +import java.util.logging.Logger /** * Implementation of AspectJ's IMessageHandler interface that routes AspectJ weaving messages and controls them through kamon configuration. @@ -26,7 +26,7 @@ import com.typesafe.config.ConfigFactory class KamonWeaverMessageHandler extends IMessageHandler { import IMessage._ - private val log = LoggerFactory.getLogger("AspectJ Weaver") + private val log = Logger.getLogger("AspectJ Weaver") private val conf = ConfigFactory.load().getConfig("kamon.weaver") private val isVerbose = conf.getBoolean("verbose") @@ -54,7 +54,7 @@ class KamonWeaverMessageHandler extends IMessageHandler { } private def showErrorMessage(msg: IMessage): Boolean = { - log.error(msg.getMessage) + log.severe(msg.getMessage) true } } |