Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 

README.md

SLF4K

This library is a thin Kotlin wrapper around the SLF4 API to lazily evaluate messages and arguments passed to the logger methods.

The following snippet will call expensiveOperation() regardless of the log priority level:

LOGGER.debug("A message with an ", expensiveOperation())

The library aims to offer the following:

LOGGER.debug("A message with an ") { expensiveOperation() }

With this, expensiveOperation() will get called only if the log priority is set to DEBUG or lower.

You can’t perform that action at this time.