hyperlane_log/log/type.rs
1use crate::*;
2
3/// A collection of named log formatting functions.
4pub type ListLog<T> = Vec<(String, ArcLogFunc<T>)>;
5
6/// Thread-safe shared reference to a collection of log functions.
7pub type LogListArcLock<T> = Arc<RwLock<ListLog<T>>>;
8
9/// Thread-safe shared reference to a Log configuration instance.
10pub type LogArcLock = Arc<RwLock<Log>>;
11
12/// Trait object representing a log formatting function.
13pub type LogFunc<T> = dyn LogFuncTrait<T>;
14
15/// Thread-safe shared reference to a log formatting function.
16pub type ArcLogFunc<T> = Arc<LogFunc<T>>;
17
18/// Thread-safe shared reference to a Log configuration.
19pub type ArcLog = Arc<Log>;