autolog

Crates.ioautolog
lib.rsautolog
version0.1.0
sourcesrc
created_at2022-09-09 06:59:28.610887
updated_at2022-09-09 06:59:28.610887
descriptionA mini Rust library for logging when a function is called
homepagehttps://github.com/jewlexx/autolog
repositoryhttps://github.com/jewlexx/autolog
max_upload_size
id661584
size7,636
Juliette Cordor (jewlexx)

documentation

https://docs.rs/autolog

README

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

Commit count: 42

cargo fmt