#logger #env-logger #log #logfmt #heroku #logging

logfmt_logger

Logging interface implementing Heroku's logfmt

2 releases

0.1.1 Sep 19, 2020
0.1.0 Sep 19, 2020

#4 in #heroku

23 downloads per month

MIT license

375KB
236 lines

logfmt_logger

docs.rs Crates.io

Logger based off of env_logger using Heroku's logfmt as an output format.

Preview

terminal

Quick Start

Cargo.toml

logfmt_logger = "0.1.1"

src/main.rs

use std::env;
use logfmt_logger;

fn main() {
  env::set_var("RUST_LOG", "trace");
  logfmt_logger::init();
}

Dependencies

~0–8MB
~49K SLoC