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
14pub(crate) mod r#const;
15pub(crate) mod r#fn;
16pub(crate) mod r#impl;
17pub(crate) mod r#struct;
18pub(crate) mod r#trait;
19
20#[cfg(test)]
21mod test;
22
23pub use {r#const::*, r#fn::*, r#struct::*, r#trait::*};
24
25pub(crate) use std::fs::read_dir;
26
27pub(crate) use {file_operation::*, hyperlane_time::*};