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§
sourcefn new_with_component_name<T>(&self) -> Self
fn new_with_component_name<T>(&self) -> Self
Create a new child logger with a src
key containing the component name.
sourcefn new_with_name(&self, name: &str) -> Self
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.