Crate autolog

Source
Expand description

§AutoLog

docs.rs Crates.io Crates.io GitHub last commit

A mini Rust library for logging when a function is called.

§Features

  • Tracing support
  • Custom log messages
  • Variables in log messages (function name and function arguments)

§Usage

Add this to your Cargo.toml:

[dependencies]
autolog = "0.1"

§Example

use autolog::autolog;
// or
#[macro_use]
extern crate autolog;

#[autolog]
fn main() {
    println!("Hello, world!");
}

§License

Crates.io

Made with ❤️ by Juliette Cordor

Attribute Macros§

autolog
The main autolog macro