Struct slog::logger::Logger
[−]
[src]
pub struct Logger { // some fields omitted }
Logger
Methods
impl Logger
[src]
fn set_drain<D: Drain>(&self, drain: D)
Set the drain for logger and it's hierarchy
fn swap_drain(&self, drain: Arc<Box<Drain>>) -> Arc<Box<Drain>>
Swap the existing drain with a new one
As the drains are shared between threads, and might still be
referenced Arc
s are being used to reference-count them.
Trait Implementations
impl Clone for Logger
[src]
fn clone(&self) -> Logger
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more