awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
oshai avatar

oshai/kotlin-logging

0
View on GitHub↗
3,086 stars·130 forks·Kotlin·Apache-2.0·28 views

Kotlin Logging

kotlin-logging is a logging facade for Kotlin that provides a unified API and a multiplatform logging interface. It functions as a wrapper for various backend frameworks, including SLF4J, to enable consistent event recording across different JVM and Kotlin Multiplatform targets.

The library centers on lazy message evaluation, which prevents expensive string construction unless the specific log level is active. This is achieved through a lazy-evaluated logger that computes messages only when the current severity level permits.

The project supports structured application logging with metadata and exceptions, automatic logger initialization based on the surrounding class, and native backend routing to redirect output to platform-specific logging systems. It also includes global log level configuration to control message emission across the system.

Features

  • Kotlin Multiplatform Logging - Provides a unified logging interface for recording events and errors across different Kotlin Multiplatform targets.
  • Deferred Log Evaluation - Improves performance by delaying log argument evaluation until the required severity level is confirmed.
  • Platform Support - Provides a single unified interface for recording events across diverse operating systems and environments.
  • Lazy Evaluation - Uses lambda-based lazy evaluation to avoid expensive string construction for suppressed log levels.
  • Logging Facades - Provides a concise Kotlin-idiomatic facade for various backend logging frameworks.
  • Platform-Specific Backend Resolution - Uses Kotlin's expect-actual mechanism to resolve the correct logging backend at compile time for different operating systems.
  • Multiplatform Logging Interfaces - Offers a unified logging bridge that works across different JVM and Kotlin Multiplatform targets.
  • Facades - Implements a unified API facade that forwards logging calls to various backend frameworks.
  • Cross-Platform Logging Modules - Routes application logs to native system logging backends across various environments and platforms.
  • Log Configuration - Includes global log level configuration to define minimum severity thresholds for the entire system.
  • Native Tracing Backend Integrations - Redirects output to platform-specific logging systems to ensure messages appear in native system logs.
  • Structured Logging - Supports creating detailed log entries with metadata and exceptions for structured analysis.
  • Logging Abstractions - Provides a lightweight abstraction that integrates with SLF4J and other backend logging frameworks.

Star history

Star history chart for oshai/kotlin-loggingStar history chart for oshai/kotlin-logging

How this analysis was created: This summary and feature list were written by an AI model that read the project's README and public documentation pages. Each feature links to the documentation it came from; stars, license and language come straight from the GitHub API. The model does not read the source code, and the analysis is refreshed when the project is re-analysed. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Open-source alternatives to Kotlin Logging

Similar open-source projects, ranked by how many features they share with Kotlin Logging.
  • sirupsen/logrussirupsen avatar

    sirupsen/logrus

    25,736View on GitHub↗

    Logrus is a structured logging library for Go that produces machine-readable output using key-value pairs and JSON formatting. It serves as a pluggable logging framework providing a thread-safe event logger with configurable mutex locking to manage concurrent writes across multiple goroutines. The project distinguishes itself through a pluggable hook system that routes log entries to external services or custom destinations. It also features a contextual logger capable of attaching persistent metadata and request-scoped fields to entries to improve traceability. The framework covers broad ob

    Gogologginglogrus
    View on GitHub↗25,736
  • charmbracelet/logcharmbracelet avatar

    charmbracelet/log

    3,121View on GitHub↗

    This is a structured logging library designed to produce logs using key-value pairs, severity levels, and machine-readable formats. It provides a toolkit for creating logs that are consistent for both human review and machine parsing. The project is distinguished by its focus on terminal visualization, using a styling system to apply colors and prefixes to log entries for improved readability in consoles. It also includes a specialized adapter to convert standard library log calls into structured events by inferring severity levels from message prefixes. The library manages metadata through

    Gogolanglogging
    View on GitHub↗3,121
  • delgan/loguruDelgan avatar

    Delgan/loguru

    23,964View on GitHub↗

    Loguru is a Python logging library and thread-safe framework designed for recording system events and diagnostic messages. It functions as a structured logging tool that can serialize messages into JSON strings with metadata for automated parsing and analysis. The library includes a specialized exception tracker that captures unhandled crashes across main and background threads, rendering detailed stack traces that include local variable values. It further distinguishes itself through a unified routing pipeline that can intercept messages from the standard library logging module and dispatch

    Python
    View on GitHub↗23,964
  • nlog/nlogNLog avatar

    NLog/NLog

    6,542View on GitHub↗

    NLog is an open-source logging framework for .NET that functions as a structured logging library and log routing engine. It captures log events with named parameters as searchable data rather than plain text and directs these messages to various output destinations based on severity and source. The framework is designed as an extensible platform, supporting custom targets, layout renderers, and filters that can be loaded from external assemblies or defined in code. It features a dynamic configuration system that allows logging targets, rules, and layouts to be updated via XML or programmatic

    C#aotaot-compatiblec-sharp
    View on GitHub↗6,542
See all 30 alternatives to Kotlin Logging→

Frequently asked questions

What does oshai/kotlin-logging do?

kotlin-logging is a logging facade for Kotlin that provides a unified API and a multiplatform logging interface. It functions as a wrapper for various backend frameworks, including SLF4J, to enable consistent event recording across different JVM and Kotlin Multiplatform targets.

What are the main features of oshai/kotlin-logging?

The main features of oshai/kotlin-logging are: Kotlin Multiplatform Logging, Deferred Log Evaluation, Platform Support, Lazy Evaluation, Logging Facades, Platform-Specific Backend Resolution, Multiplatform Logging Interfaces, Facades.

What are some open-source alternatives to oshai/kotlin-logging?

Open-source alternatives to oshai/kotlin-logging include: sirupsen/logrus — Logrus is a structured logging library for Go that produces machine-readable output using key-value pairs and JSON… charmbracelet/log — This is a structured logging library designed to produce logs using key-value pairs, severity levels, and… nlog/nlog — NLog is an open-source logging framework for .NET that functions as a structured logging library and log routing… delgan/loguru — Loguru is a Python logging library and thread-safe framework designed for recording system events and diagnostic… rust-lang/log — This project provides a lightweight logging facade for Rust applications, serving as a standardized interface for… faif/python-patterns — This project is a comprehensive collection of software design patterns implemented in Python. It serves as a reference…