hyperlane_plugin_logger/lib.rs
1//! hyperlane-plugin-logger
2//!
3//! A logging plugin for the Hyperlane framework, writing the log of a server
4//! to the console, to a file, or to both.
5
6mod r#const;
7mod r#impl;
8mod r#static;
9mod r#struct;
10
11pub use {log::LevelFilter, r#struct::*};
12
13pub(crate) use r#static::*;
14
15use r#const::*;
16
17use std::{
18 fs::{File, OpenOptions},
19 io::{Error, Write},
20 sync::{Mutex, OnceLock},
21 time::Instant,
22};
23
24use hyperlane::{Context, ServerHook, Status, Stream};