Logging API for Scala
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/main/scala/org/helgoboss/scala_logging
.gitignore
LICENSE
README.md
pom.xml

README.md

Scala Logging

Scala Logging is a simple and clean Scala API for logging. It also contains an implementation based on the Java Logging API.

Examples

No surprises here. It's a typical logging API:

log.info("Hello world!")

What might surprise Scala newcomers is the fact that the expression in the braces will only be evaluated if the corresponding log level is activated. In the following example, 3 + 2 will be calculated only if debugging is enabled in the underlying logging framework:

log.debug(3 + 2)

So forget about checking isDebugEnabled().

Documentation