1 unstable release

0.1.0 Sep 9, 2022

#48 in #called

MIT/Apache

6KB
64 lines

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

Dependencies

~2MB
~47K SLoC