From 44e09628a50cdb724f108f4334b11f3e685d6d3e Mon Sep 17 00:00:00 2001 From: Yoshua Wuyts Date: Sun, 9 Jun 2019 18:24:04 +0200 Subject: [PATCH] Logger Signed-off-by: Yoshua Wuyts --- src/lib.rs | 2 +- src/logger.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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, {