Skip to main content

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#[cfg(test)]
11#[path = "../tests/mod.rs"]
12mod tests;
13
14pub use {log::LevelFilter, r#struct::*};
15
16pub(crate) use r#static::*;
17
18use r#const::*;
19
20use std::{
21    fs::{File, OpenOptions},
22    io::{Error, Write},
23    sync::{Mutex, OnceLock},
24    time::Instant,
25};
26
27use hyperlane::{Context, ServerHook, Status, Stream};