{"repo":"oshai/kotlin-logging","free":true,"listed":false,"github":"https://github.com/oshai/kotlin-logging","clone":"git clone https://github.com/oshai/kotlin-logging.git","description":"Lightweight Multiplatform logging framework for Kotlin. A convenient and performant logging facade.","language":"Kotlin","stars":3105,"topics":["kotlin","slf4j","logging","jvm","android","multiplatform"],"license":"Apache-2.0","category":"mobile-apps","readme_excerpt":"kotlin-logging Lightweight Multiplatform logging framework for Kotlin, written in . A convenient and performant logging facade. Call log methods, without checking whether the respective log level is enabled Behind the scenes the expensive message do not get evaluated if debug is not enabled: Define the logger, without explicitly specifying the class name Behind the scenes val logger will be created in the class, with the class/file name: Log exceptions in a Kotlin-style Fluent logging in a Kotlin-style Getting started Download Important note: kotlin-logging depends on slf4j-api (in the JVM artifact). In runtime, it is also required to depend on a logging implementation. More details in how-to-configure-slf4j. And an excellent detailed explanation in a-guide-to-logging-in-java. In version 5 users should also provide slf4j-api dependency. In short, if you just want to log statements to stdout, it's possible to add the following dependency: org.slf4j:slf4j-simple:2.0.3 . See the full example in kotlin-logging-example-maven. Gradle Alternatively, download the JAR from github or maven-central. Multiplatform An experimental multiplatform support is available. More information is available on the wiki and issues #21 #45. Overview After seeing many questions like Idiomatic way of logging in Kotlin and Best practices for loggers, it seems like there should be a standard for logging and obtaining a logger in Kotlin. kotlin-logging provides a wrapper for slf4j-api to be used by Kotlin c","default_branch":null,"files":null,"tree":[],"storefront":"/r/oshai","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/oshai/kotlin-logging/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}