1 unstable release
0.1.0 | Sep 9, 2022 |
---|
#48 in #called
6KB
64 lines
AutoLog
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
Made with ❤️ by Juliette Cordor
Dependencies
~2MB
~47K SLoC