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 ⭐!
- 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.
Please start with the Contribution guidelines.
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
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.