Advertisement
Guest User

Untitled

a guest
Feb 24th, 2015
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.41 KB | None | 0 0
  1.  
  2. // What I want
  3. trait GrizzledActorLogging[T] {
  4.   val logName: String
  5.   private val akkaLogger = akka.event.slf4j.Logger(getClass[T], logName)
  6.   val log = new grizzled.slf4j.Logger(akkaLogger)
  7. }
  8.  
  9. // akka.event.slf4j.Logger.apply
  10. def apply(logClass: Class[_], logSource: String): org.slf4j.Logger
  11.  
  12. // Error
  13. class type required but T found
  14. [error]   val akkaLogger = akka.event.slf4j.Logger(classOf[T], logName)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement