diff options
author | Ivan Topolnjak <ivantopo@gmail.com> | 2017-05-25 16:52:52 +0200 |
---|---|---|
committer | Ivan Topolnjak <ivantopo@gmail.com> | 2017-05-25 16:52:52 +0200 |
commit | a3d78ef61a277b0b62dc93daf84756dfa7625d3d (patch) | |
tree | 4fee7ce93ecfb4e32c7aaaa22efb75ed07c667f6 /kamon-core/src/test/scala/kamon/LogInterceptor.scala | |
parent | 22379d3f318b2cd3a4c995ff1c45bda33d935a46 (diff) | |
download | Kamon-a3d78ef61a277b0b62dc93daf84756dfa7625d3d.tar.gz Kamon-a3d78ef61a277b0b62dc93daf84756dfa7625d3d.tar.bz2 Kamon-a3d78ef61a277b0b62dc93daf84756dfa7625d3d.zip |
trying to flatten out the structure and eliminate the notion of entitites
Diffstat (limited to 'kamon-core/src/test/scala/kamon/LogInterceptor.scala')
-rw-r--r-- | kamon-core/src/test/scala/kamon/LogInterceptor.scala | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/kamon-core/src/test/scala/kamon/LogInterceptor.scala b/kamon-core/src/test/scala/kamon/LogInterceptor.scala index b5b8a79c..abdf6ba8 100644 --- a/kamon-core/src/test/scala/kamon/LogInterceptor.scala +++ b/kamon-core/src/test/scala/kamon/LogInterceptor.scala @@ -1,14 +1,14 @@ package kamon -import uk.org.lidalia.slf4jext.Level -import uk.org.lidalia.slf4jtest.{LoggingEvent, TestLogger} - -trait LogInterceptor { - - def interceptLog[T](level: Level)(code: => T)(implicit tl: TestLogger): Seq[LoggingEvent] = { - import scala.collection.JavaConverters._ - tl.clear() - val run = code - tl.getLoggingEvents().asScala.filter(_.getLevel == level) - } -} +//import uk.org.lidalia.slf4jext.Level +//import uk.org.lidalia.slf4jtest.{LoggingEvent, TestLogger} +// +//trait LogInterceptor { +// +// def interceptLog[T](level: Level)(code: => T)(implicit tl: TestLogger): Seq[LoggingEvent] = { +// import scala.collection.JavaConverters._ +// tl.clear() +// val run = code +// tl.getLoggingEvents().asScala.filter(_.getLevel == level) +// } +//} |