Simple Scala facade for SLF4J
Latest commit 2c8b943 Aug 31, 2011 Heiko Seeberger Release 1.0.7 for Scala 2.8.0 to 2.9.1.



SLF4S (Simple Logging Facade for Scala) is a thin Scala wrapper around SLF4J offering the following features:

  • Logging trait to easily mix in a Logger initialized with the class name
  • By-name parameters on log methods for better performance
  • OSGi compliant

SLF4S is open source software licensed under the Apache 2.0 License. Just use it!

Getting SLF4S

The binaries are made available in the Maven repository.


val slf4s = "com.weiglewilczek.slf4s" %% "slf4s" % "1.0.7

Supported Scala versions are 2.8.0, 2.8.1, 2.9.0-1 and 2.9.1.

For Maven


Replace the suffix of the artifactId to represent one of the supported Scala versions (see above).

Using SLF4S

Mix in Logging trait:

class MyClazz extends SomeClazz with Logging

Or create a Logger explicitly:

val logger = Logger("SomeSpecialName")

When logging something, the argument will only be evaluated if the according log level is enabled:"Created customer with id " + id)