Documentation

tinylog crates.io docs.rs

Usage

#[macro_use]
extern crate log;

fn main() {
  tinylog::init();
  info!("beep boop");
}

Configuration

Tinylog will use the RUST_LOG environment variable if set. By default, this is debug for debug builds and info for release builds.

  • error
  • warn
  • info
  • debug
  • trace
  • off

The NO_COLOR and FORCE_COLOR environment variables are also respected. FORCE_COLOR takes precedence.

Features

  • Enable the humantime feature to add timestamps to logs.