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