Skip to content

acm19/loki-logback-appender

 
 

Repository files navigation

loki-logback-appender

Build Maven Central

Loki4j aims to be the fastest and the most lightweight implementation of Logback appender for 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

  • Support for both JSON and Protobuf formats
  • Compatibility with Grafana Cloud
  • Flexible management of Loki labels using MDC and SLF4J Markers
  • Logback formatting patterns are used for both labels and messages
  • Optional sorting of log records by timestamp before sending them to Loki
  • Zero-dependency (for Java 11+)
  • Logging 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 to the directory on your local machine and run:

./gradlew check

Project status

At the moment all the main logging features are 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.

About

Fast and lightweight implementation of Logback appender for Grafana Loki

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Java 100.0%