
Speak-Easy
Speak-Easy is a Rust library that provides logging functionalities with different levels and rotation options built on top of tracing and compatible with tokio-rs.
Features
- Different log levels
- Log rotation options
- Cleanup functionality
Usage
First, add the following to your Cargo.toml:
[]
= { = "0.1" }
= { = ["macros", "rt-multi-thread"], = "1.37.0" }
Note
If you want to use Speak-Easy without tokio, you must disable default features:
[]
= { = "0.1", = false }
Then, use the library in your code like this:
use SpeakEasy;
use ;
use ;
async
Please replace "/path/to/log/files" with the actual path where you want to store your log files.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contributing
Feel free to open issues and send PRs. We will evaluate them together in the comment section.