KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have the following code: object Log { def get[T](implicit manifest : Manifest[T] ) = { LoggerFactory.getLogger( manifest.erasure.getName ) } def getByName( name : String ) = { LoggerFactory.getLogger(name) } } The idea is to use it like this: object SimpleFuture { val log = Log.get[SimpleFuture[Throwable,Nothing]] } But the compiler (2.10) now says that manifest.erasure is deprecated. What should I use now for this same functionality?
Tags (comma-separated)
Save Edits
Cancel