Lightweight Multiplatform logging framework for Kotlin, written in Pure Kotlin. A convenient and performant logging facade. Version 5 is not backward compatible with previous versions (v.3, v.2, v.1). Group id (in maven) and package names changed. It is possible to use both version 5 and previous versions side-by-side so some of the code from the old version and some new. It is also possible to have libs using old version and use the new version (and vice-versa). After seeing many questions like the 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.

Features

  • 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
  • Documentation available
  • Log exceptions in a Kotlin-style
  • Behind the scenes val logger will be created in the class, with the class/file name
  • Fluent logging in a Kotlin-style

Project Samples

Project Activity

See All Activity >

Categories

Frameworks

License

Apache License V2.0

Follow kotlin-logging

kotlin-logging Web Site

Other Useful Business Software
Build AI Apps with Gemini 3 on Vertex AI Icon
Build AI Apps with Gemini 3 on Vertex AI

Access Google’s most capable multimodal models. Train, test, and deploy AI with 200+ foundation models on one platform.

Vertex AI gives developers access to Gemini 3—Google’s most advanced reasoning and coding model—plus 200+ foundation models including Claude, Llama, and Gemma. Build generative AI apps with Vertex AI Studio, customize with fine-tuning, and deploy to production with enterprise-grade MLOps. New customers get $300 in free credits.
Try Vertex AI Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of kotlin-logging!

Additional Project Details

Programming Language

Kotlin

Related Categories

Kotlin Frameworks

Registered

2024-01-24