hyperlane_log/
lib.rs

1//! hyperlane-log
2//!
3//! A Rust logging library that supports both asynchronous and synchronous logging.
4//! It provides multiple log levels, such as error, info, and debug.
5//! Users can define custom log handling methods and configure log file paths.
6//! The library supports log rotation, automatically creating a new log file
7//! when the current file reaches the specified size limit.
8//! It allows flexible logging configurations, making it suitable for
9//! both high-performance asynchronous applications and
10//! traditional synchronous logging scenarios. The asynchronous mode utilizes
11//! Tokio's async channels for efficient log buffering,
12//! while the synchronous mode writes logs directly to the file system.
13
14mod r#const;
15mod r#fn;
16mod r#impl;
17mod r#struct;
18#[cfg(test)]
19mod test;
20mod r#trait;
21
22pub use {r#const::*, r#fn::*, r#struct::*, r#trait::*};
23
24use std::fs::read_dir;
25
26use {file_operation::*, hyperlane_time::*};