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 cfg;
15pub(crate) mod log;
16
17pub use log::*;
18
19pub(crate) use file_operation::*;
20pub(crate) use hyperlane_time::*;
21pub(crate) use std::{
22 fs::read_dir,
23 sync::{Arc, RwLock},
24};