aboutsummaryrefslogtreecommitdiff
path: root/kamon-core
diff options
context:
space:
mode:
Diffstat (limited to 'kamon-core')
-rw-r--r--kamon-core/src/main/resources/reference.conf6
-rw-r--r--kamon-core/src/main/scala/kamon/weaver/logging/KamonWeaverMessageHandler.scala3
2 files changed, 9 insertions, 0 deletions
diff --git a/kamon-core/src/main/resources/reference.conf b/kamon-core/src/main/resources/reference.conf
index d5ed8825..f29b9220 100644
--- a/kamon-core/src/main/resources/reference.conf
+++ b/kamon-core/src/main/resources/reference.conf
@@ -64,6 +64,12 @@ kamon {
}
weaver {
+ # AspectJ options supported by LTW
+ # showWeaveInfo: show informational messages whenever the weaver touches a class file.
+ # verbose: show informational messages about the weaving process.
+ # debug: show a messages for each class passed to the weaver indicating whether it was woven, excluded or ignored.
+ # showWarn: show warning messages about the weaving process.
+
showWeaveInfo = off
verbose = off
debug = off
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 1aa0aae0..bf047898 100644
--- a/kamon-core/src/main/scala/kamon/weaver/logging/KamonWeaverMessageHandler.scala
+++ b/kamon-core/src/main/scala/kamon/weaver/logging/KamonWeaverMessageHandler.scala
@@ -20,6 +20,9 @@ import org.aspectj.bridge.{ IMessage, IMessageHandler }
import org.slf4j.LoggerFactory
import com.typesafe.config.ConfigFactory
+/**
+ * Implementation of AspectJ's IMessageHandler interface that routes AspectJ weaving messages and controls them through kamon configuration.
+ */
class KamonWeaverMessageHandler extends IMessageHandler {
import IMessage._