Tjahzi

License: MIT CircleCI Maven Central

Maven Central Maven Central

It is a Java client for Grafana Loki. It has a core component that implements sending batches of logs to Loki. On top of it we built log4j2 and Logback appenders, with following main advantages:

  1. Logging does not allocate objects nor take any locks.
  2. Sending data to Loki in batches allocates as little as possible.
  3. We also provide a no-dependency version of log4j2 appender.
  4. Includes in-house implementation of protobuf wire format for Loki to reduce dependencies and improve performance

Tjahzi is currently used to ship logs from tens of servers at about 10GB of logs per day.

Log4j2

Dependency info:

<dependency>
    <groupId>pl.tkowalcz.tjahzi</groupId>
    <artifactId>log4j2-appender-nodep</artifactId>
    <version>0.9.5</version>
</dependency>

For log4j2 appender quick start guide and detailed discussions see this README.md.

Logback

Dependency info:

<dependency>
  <groupId>pl.tkowalcz.tjahzi</groupId>
  <artifactId>logback-appender-nodep</artifactId>
  <version>0.1.0</version>
</dependency>

For Logback appender quick start guide and detailed discussions see this README.md.