diff --git a/src/lib.rs b/src/lib.rs index 3a31947..1ea10fe 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -106,7 +106,7 @@ mod backtrace; mod logger; mod macros; -pub use logger::AsyncLogger; +pub use logger::Logger; /// A new span created by [`span!`]. /// diff --git a/src/logger.rs b/src/logger.rs index a567c5f..ee041b1 100644 --- a/src/logger.rs +++ b/src/logger.rs @@ -3,7 +3,7 @@ use log::{LevelFilter, Log, Metadata, Record}; /// Wrap an async logger, extending it with async functionality. #[derive(Debug)] -pub struct AsyncLogger +pub struct Logger where F: Fn() -> (u64, Option) + Send + Sync + 'static, { @@ -13,7 +13,7 @@ where filter: LevelFilter, } -impl AsyncLogger +impl Logger where F: Fn() -> (u64, Option) + Send + Sync + 'static, { @@ -44,7 +44,7 @@ where } } -impl log::Log for AsyncLogger +impl log::Log for Logger where F: Fn() -> (u64, Option) + Send + Sync + 'static, {