Scala SLF4J wrapper
Scala SLF4J wrapper
Example:
class Foo extends Logging { log.info("My foo is %s","alive") log.error(new Exception(),"My foo is %s","broken") }
The logger uses String.format: http://download-llnw.oracle.com/javase/6/docs/api/java/lang/String.html#format(java.lang.String,%20java.lang.Object...)
Base trait for all classes that wants to be able use the logging infrastructure.
MapLike scala interface for Mongo DBObjects - proxies an existing DBObject.
MapLike scala interface for Mongo DBObjects - proxies an existing DBObject. Cannot act as a DBObject or implement it's interface due to conflicts between the java methods and scala methods. Implicits and explicit methods allow you to convert to java though.
1.0
Nice trick from Miles Sabin using ambiguity in implicit resolution to disallow Nothing
Logger factory
Logger factory
ex.
val logger = Logger("my.cool.logger") val logger = Logger(classOf[Banana]) val rootLogger = Logger.root