hyperlane-log
A Rust asynchronous logging library that runs on a dedicated thread to avoid blocking other threads. It supports multiple log levels (such as error, info, and debug), and allows custom log handling methods and configuration of log file paths. When a single log file reaches the specified size limit, a new log file will be automatically created.
Installation
To use this crate, you can run cmd:
cargo add hyperlane-log
Log Storage Location Description
Three directories will be created under the user-specified directory: one for error logs, one for info logs, and one for debug logs. Each of these directories will contain a subdirectory named by the date, and the log files within these subdirectories will be named in the format
timestamp.index.log
.
Use
use *;
let log: Log = new;
let log_thread: = log_run;
log.log_error;
log.log_info;
log.log_debug;
let _ = log_thread.join;
License
This project is licensed under the MIT License. See the LICENSE file for details.
Contributing
Contributions are welcome! Please open an issue or submit a pull request.
Contact
For any inquiries, please reach out to the author at ltpp-universe root@ltpp.vip.