incorporate review feedback

- tons of documentation added
- lift extraction of logClass into LogSource type-class
- prefer Props.empty
This commit is contained in:
Roland 2012-01-13 13:50:42 +01:00
parent 7d0e006547
commit b01640fddb
9 changed files with 260 additions and 147 deletions

View file

@ -47,6 +47,24 @@ object LoggingDocSpec {
}
//#my-event-listener
//#my-source
import akka.event.LogSource
import akka.actor.ActorSystem
object MyType {
implicit val logSource: LogSource[AnyRef] = new LogSource[AnyRef] {
def genString(o: AnyRef): String = o.getClass.getName
override def getClazz(o: AnyRef): Class[_] = o.getClass
}
}
class MyType(system: ActorSystem) {
import MyType._
import akka.event.Logging
val log = Logging(system, this)
}
//#my-source
}
class LoggingDocSpec extends AkkaSpec {