diff options
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) +// } +//} |