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 ⭐!
- Support for both JSON and Protobuf formats
- Compatibility with Grafana Cloud
- Optional sorting of log records by timestamp before sending them to Loki
- Logback formatting patterns are used for both labels and messages
- Zero-dependency (for Java 11+)
- Logging 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
- Gradle 7.0 or later
Check out the project to the directory on your local machine and run:
gradle check
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.