Skip to content
This repository has been archived by the owner on Mar 9, 2024. It is now read-only.

helgoboss/scala-logging

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Logging API for Scala

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages