Crates.io | fenrir-rs |
lib.rs | fenrir-rs |
version | 0.5.1 |
source | src |
created_at | 2023-05-10 16:20:47.578096 |
updated_at | 2023-07-11 06:55:42.520415 |
description | Fenrir is a create for using logi for log aggregation which can be used with a logging framework like fern. |
homepage | |
repository | https://github.com/flying7eleven/fenrir-rs |
max_upload_size | |
id | 861433 |
size | 89,578 |
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.
Examples are available for several use-cases, check out the examples folder.
Create a new Rust project: cargo new example
Add dependencies to this create to your Cargo.toml file:
[dependencies.fenrir-rs]
version = "0.5.0"
features = ["ureq", "json"]
Use it 😉
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.
The MSRV for this tool ist 1.60.0
.
This project is licensed under the MIT License.