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

logfmt_logger

Logging interface implementing Heroku's logfmt

2 releases

0.1.1 Sep 19, 2020
0.1.0 Sep 19, 2020

#5 in #heroku

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–7MB
~48K SLoC