funlog
简体中文 | English
A procedural macro for tracing Rust function calls.
Features
- Automatically trace function entry and exit
- Log function parameters and return values
- Easy integration with the standard Rust logging system
- Minimal performance overhead
Installation
Add this to your Cargo.toml:
[]
= "0.1.0"
Usage
use trace;
Configuration
The macro uses the standard Rust log crate. Make sure to initialize a logger (such as env_logger) in your application.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request