Skip to content

Commit

Permalink
Logger
Browse files Browse the repository at this point in the history
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
  • Loading branch information
yoshuawuyts committed Jun 9, 2019
1 parent f2c565f commit 44e0962
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ mod backtrace;
mod logger;
mod macros;

pub use logger::AsyncLogger;
pub use logger::Logger;

/// A new span created by [`span!`].
///
Expand Down
6 changes: 3 additions & 3 deletions src/logger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use log::{LevelFilter, Log, Metadata, Record};

/// Wrap an async logger, extending it with async functionality.
#[derive(Debug)]
pub struct AsyncLogger<L: Log + 'static, F>
pub struct Logger<L: Log + 'static, F>
where
F: Fn() -> (u64, Option<u64>) + Send + Sync + 'static,
{
Expand All @@ -13,7 +13,7 @@ where
filter: LevelFilter,
}

impl<L: Log + 'static, F> AsyncLogger<L, F>
impl<L: Log + 'static, F> Logger<L, F>
where
F: Fn() -> (u64, Option<u64>) + Send + Sync + 'static,
{
Expand Down Expand Up @@ -44,7 +44,7 @@ where
}
}

impl<L: Log, F> log::Log for AsyncLogger<L, F>
impl<L: Log, F> log::Log for Logger<L, F>
where
F: Fn() -> (u64, Option<u64>) + Send + Sync + 'static,
{
Expand Down

0 comments on commit 44e0962

Please # to comment.