[][src]Trait fast_logger::GenericLogger

pub trait GenericLogger {
    fn log_generic(&mut self, level: u8, ctx: &'static str, message: Generic);
fn to_logpass(self) -> Logpass;
fn to_compatibility(self) -> Compatibility; }

Trait for a generic logger, allows Logpass to pass Generic to this logger

Required methods

fn log_generic(&mut self, level: u8, ctx: &'static str, message: Generic)

Log a generic message, used by Logpass

fn to_logpass(self) -> Logpass

Consume this logger to create a logpass

fn to_compatibility(self) -> Compatibility

Turn the logger into a function that takes messages

Useful when crossing boundaries into libraries that only take this compatibility type. The type only refers to globally accessible types, so it can be used everywhere without introducing dependencies.

See Compatibility for examples.

Loading content...

Implementors

impl<C: 'static + Display + From<Generic> + Send> GenericLogger for LoggerV2Async<C>[src]

Loading content...