Scala Logging

Simple Scala API for logging along with an implementation based on the Java Logging API

License

License

Categories

Categories

Scala Languages Logging Application Layer Libs
GroupId

GroupId

org.helgoboss
ArtifactId

ArtifactId

scala-logging
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

bundle
Description

Description

Scala Logging
Simple Scala API for logging along with an implementation based on the Java Logging API
Project URL

Project URL

https://github.com/helgoboss/scala-logging
Source Code Management

Source Code Management

https://github.com/helgoboss/scala-logging

Download scala-logging

Dependencies

compile (1)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.10.0

Project Modules

There are no modules declared in this project.

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

Versions

Version
1.0.0