Scala front-end to a SLF4J logger.
Mix the Logging
trait into a class to get:
Time logging for the block.
Time logging for the block.
class RootController extends ApplicationController { def doSomething = { Thread.sleep(10) "AAAA" } def index = { val result = warnElapsedTime(1) { doSomething } render("/root/index") }
A factory for retrieving an SLF4JLogger.
Mix the
Logging
trait into a class to get:- Logging methods - A
Logger
object, accessible via thelog
propertyDoes not affect the public API of the class mixing it in.