Trait mithril_common::logging::LoggerExtensions

source ·
pub trait LoggerExtensions {
    // Required methods
    fn new_with_component_name<T>(&self) -> Self;
    fn new_with_name(&self, name: &str) -> Self;
}
Expand description

Extension trait for slog::Logger

Required Methods§

source

fn new_with_component_name<T>(&self) -> Self

Create a new child logger with a src key containing the component name.

source

fn new_with_name(&self, name: &str) -> Self

Create a new child logger with a src key containing the provided name.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl LoggerExtensions for Logger

source§

fn new_with_component_name<T>(&self) -> Self

source§

fn new_with_name(&self, name: &str) -> Self

Implementors§