From 670bb396f9a03023b94acaec1793ea06f25ae99d Mon Sep 17 00:00:00 2001 From: Viktor Klang Date: Mon, 23 Apr 2012 19:07:27 +0200 Subject: [PATCH] Adding @implicitNotFound annotation on LogSource --- akka-actor/src/main/scala/akka/event/Logging.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/akka-actor/src/main/scala/akka/event/Logging.scala b/akka-actor/src/main/scala/akka/event/Logging.scala index 3383ea2fee..1a2cb2c520 100644 --- a/akka-actor/src/main/scala/akka/event/Logging.scala +++ b/akka-actor/src/main/scala/akka/event/Logging.scala @@ -14,6 +14,7 @@ import java.util.concurrent.atomic.AtomicInteger import scala.util.control.NoStackTrace import java.util.concurrent.TimeoutException import akka.dispatch.Await +import annotation.implicitNotFound /** * This trait brings log level handling to the EventStream: it reads the log @@ -211,7 +212,7 @@ trait LoggingBus extends ActorEventBus { * * The default implementation of the second variant will just call the first. */ -trait LogSource[-T] { +@implicitNotFound("Cannot find LogSource for ${T} please see ScalaDoc for LogSource for how to obtain or construct one.") trait LogSource[-T] { def genString(t: T): String def genString(t: T, system: ActorSystem): String = genString(t) def getClazz(t: T): Class[_] = t.getClass