nanolog 0.2.0

A minimal log library only depending on log and std
Documentation
  • Coverage
  • 100%
    2 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 4.85 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 239.91 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • cvengler

nanolog

A minimal log library only depending on log and std.

Usage

The following Rust code provides a minimal example.

use log::LevelFilter;

fn main() {
	nanolog::init(LevelFilter::Trace);
	log::trace!("trace");
	log::debug!("debug");
	log::info!("info");
	log::warn!("warn");
	log::error!("error");
}

Running it will result in:

[1750844597 TRACE main] trace
[1750844597 DEBUG main] debug
[1750844597 INFO main] info
[1750844597 WARN main] warn
[1750844597 ERROR main] error