#logging-framework #logging #log #loki #logfmt

fenrir-rs

Fenrir is a create for using logi for log aggregation which can be used with a logging framework like fern

8 releases (4 breaking)

0.5.1 Jul 11, 2023
0.5.0 Jul 6, 2023
0.4.1 Jun 5, 2023
0.4.0 May 30, 2023
0.1.1 May 12, 2023

#343 in Debugging

46 downloads per month

MIT license

41KB
644 lines

fenrir-rs

Build status Crates.io Crates.io Documentation

Fenrir (Fenrir was the son of the trickster god Loki and the giantess Angrboða) facilitates collecting and shipping your applications logs to a Loki instance. It does this by integrating with the log crate.

Getting Started

Examples are available for several use-cases, check out the examples folder.

  1. Create a new Rust project: cargo new example

  2. Add dependencies to this create to your Cargo.toml file:

    [dependencies.fenrir-rs]
    version = "0.5.0"
    features = ["ureq", "json"]
    
  3. Use it 😉

Development and testing

For easier testing and during the development phase, you can use the example docker-compose.yml to start your own instance of Loki locally. Just use docker compose to start the Loki container as well as a local Grafana instance for viewing the messages:

docker compose up -d

After the containers have started, you can visit http://localhost:3000/explore to query messages in your local Loki instance.

Minimum Supported Rust Version (MSRV)

The MSRV for this tool ist 1.60.0.

License

This project is licensed under the MIT License.

Dependencies

~3–17MB
~234K SLoC