Skip to content

loki4j/loki-logback-appender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a1f08d5 · Feb 10, 2025
Dec 14, 2024
Feb 10, 2025
Jan 17, 2025
Nov 1, 2024
Jan 17, 2025
Dec 14, 2024
Oct 20, 2024
Jan 9, 2021
Jun 1, 2024
Jan 17, 2025
Jul 9, 2021
Feb 10, 2025
Jul 1, 2022
Nov 8, 2020
Jan 23, 2025

Repository files navigation

loki-logback-appender

Build Maven Central

Loki4j aims to be the fastest and the most lightweight implementation of Logback appender for Grafana Loki. This project is unofficial and community-driven.

Please proceed to the microsite for more information:

If you have found this project helpful, please drop a ⭐!

Key features

  • Loki labels can be dynamically generated out of any Logback pattern, MDC, and SLF4J markers
  • Structured metadata support
  • Fast JSON layout for log message formatting
  • Support of JSON and Protobuf Loki API flavors
  • Compatibility with Grafana Cloud
  • Zero-dependency
  • Performance metrics

More details and links to examples can be found here.

Contributing

Please start with the Contribution guidelines.

Building and testing the project

Please make sure the following software is installed on your machine so you can build and test the project:

  • Java 11 or later

Check out the project in the directory on your local machine and run:

./gradlew check

Project status

At the moment all the main logging features have been implemented and stabilized.

Further development will be concentrated on bug fixes (if any), keeping up with new versions of Loki, and improving the codebase so it's easier to maintain.