Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
L

loki-logback-appender

> 后端框架
Open source

Fast and lightweight implementation of Logback appender for Grafana Loki

388 stars0 likes1 views
WebsiteGitHub

About

Fast and lightweight implementation of Logback appender for Grafana Loki

loki-logback-appender

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:

  • Quick Start
  • Configuration Reference
  • Migration Guide

If your company runs Loki4j in production, sponsoring the project is how you help keep it fast, current, and well maintained for the long run.

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

Key features

  • Dynamic generation of Loki labels and metadata out of any Logback pattern, MDC, KVP, or 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 the 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 17 or later

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

bash
./gradlew check

Project status

Loki4j is stable and actively maintained. The main logging features are implemented and the configuration API is settled, so releases now focus on:

  • compatibility with new Grafana Loki versions
  • security patches and dependency updates
  • bug fixes and issue triage for teams running Loki4j in production

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Javagrafanagrafana-lokijavajson

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category后端框架
PricingOpen source

> Related tools

N
Node.js
基于 V8 的 JavaScript 运行时
D
Django
Python 高级 Web 框架
S
Spring Boot
Java 生态主流微服务框架