hyperlane_log/log/type.rs
1use crate::*;
2
3pub type ListLog = Vec<(String, ArcLogFunc)>;
4pub type LogListArcLock = Arc<RwLock<ListLog>>;
5pub type LogArcLock = Arc<RwLock<Log>>;
6pub type LogFunc = dyn LogFuncTrait;
7pub type ArcLogFunc = Arc<LogFunc>;
8
9#[derive(Debug, Clone, Lombok)]
10pub struct Log {
11 pub(super) path: String,
12 pub(super) file_size: usize,
13 pub(super) interval_millis: usize,
14}