Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 794 Bytes

README.md

File metadata and controls

30 lines (20 loc) · 794 Bytes

Java CI with Gradle Release Version

slf4k

Kotlin extension functions for SLF4J.

How to use it?

It's very simple:

package com.example

import ch.leadrian.slf4k.logger
import ch.leadrian.slf4k.info

class MyService {

  companion object {
    
    private val log = logger()
  }
  
  fun doSomething(foo: String) {
    log.info { "foo = $foo" }
  }

}

The above example create a logger with the name com.example.MyService and logs a lazily computed message at INFO level.