Skip to content

Commit

Permalink
reword slf4j usage for #229
Browse files Browse the repository at this point in the history
  • Loading branch information
oshai committed Oct 29, 2022
1 parent c8b622b commit 0c82d79
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
@@ -1,7 +1,9 @@
# <img height="30" width="30" alt="kotlin-logging" src="https://raw.githubusercontent.com/MicroUtils/kotlin-logging/master/misc/images/kotlin-logging.png"> [kotlin-logging](https://github.com/MicroUtils/kotlin-logging) [![CI](https://github.com/MicroUtils/kotlin-logging/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/MicroUtils/kotlin-logging/actions/workflows/ci.yml) [![Slack channel](https://img.shields.io/badge/Chat-Slack-blue.svg)](https://kotlinlang.slack.com/messages/kotlin-logging/) [![Maven Central](https://img.shields.io/maven-central/v/io.github.microutils/kotlin-logging.svg)](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22io.github.microutils%22) [![Apache License V.2](https://img.shields.io/badge/license-Apache%20V.2-blue.svg)](https://github.com/MicroUtils/kotlin-logging/blob/master/LICENSE)

Lightweight logging framework for Kotlin, written in [![Pure Kotlin](https://img.shields.io/badge/100%25-kotlin-blue.svg)](https://kotlinlang.org/).
A convenient and performant logging library wrapping [slf4j](http://www.slf4j.org/) with Kotlin extensions.
A convenient and performant logging facade.
For jvm `kotlin-logging` is wrapping [slf4j](http://www.slf4j.org/) with Kotlin extensions.
For other platforms `kotlin-logging` has various implementations. More details in the [wiki](https://github.com/MicroUtils/kotlin-logging/wiki/Multiplatform-support)

#### Call log methods, without checking whether the respective log level is enabled
```Kotlin
Expand All @@ -14,7 +16,7 @@ Behind the scenes the expensive message do not get evaluated if debug is not ena
if (logger.isDebugEnabled) logger.debug("Some $expensive message!")
```

#### Define the logger, without explicitly specifiying the class name
#### Define the logger, without explicitly specifying the class name
```Kotlin
// Place definition above class declaration to make field static
private val logger = KotlinLogging.logger {}
Expand Down

0 comments on commit 0c82d79

Please sign in to comment.