mithril_common::logging

Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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§