32 releases

0.5.6 Jul 11, 2023
0.5.4 Mar 9, 2023
0.5.1 Jul 20, 2022
0.5.0 Jan 12, 2022
0.1.2 Dec 21, 2018

#235 in Asynchronous

Download history 132/week @ 2023-10-26 65/week @ 2023-11-02 12/week @ 2023-11-09 40/week @ 2023-11-16 151/week @ 2023-11-23 191/week @ 2023-11-30 90/week @ 2023-12-07 84/week @ 2023-12-14 90/week @ 2023-12-21 36/week @ 2023-12-28 65/week @ 2024-01-04 150/week @ 2024-01-11 57/week @ 2024-01-18 82/week @ 2024-01-25 90/week @ 2024-02-01 121/week @ 2024-02-08

386 downloads per month

Custom license

528 lines


Latest Version Documentation

A Rust crate to compress logs on the fly, and send them over the network after reaching a configured threshold.

This is useful for when you have a fleet of embedded devices running a Rust program, instead of building a complicated metrics framework you can collect the normal Rust log output securely using https and efficiently using Deflate compression.

The pure rust backend of LibFlate2 is used with only a 100kb in memory buffer. Using the 'fast' compression setting the average compression ratio in our tests is ~25 without any noticible cpu impact on even embedded MIPS processors.

Right now compressed_log pulls in the full Actix suite to handle futures and async requests. We hope to transition it to native futures and dramaticly reudce the dependency tree once they become more mature.

On the server side logs are simply dumped into a file, where they can be aggregated and processed by standard log collection tools.


  • Uses log API
  • LieFlate2 to compress log on the fly
  • Configurable threshold which will trigger in-memory log rotation and data transmission.
  • Fully architecture portable, including Mips and other BE architectures


Check out examples folder for more examples. Including custom formats for collected logs.


let level = Level::Info;
let logger = LoggerBuilder::new()


The current server reference implementaiton is compressed_log_sink


~523K SLoC