pub struct MultiOutputLogger { /* private fields */ }Expand description
多输出日志器:将日志扇出到多个 LogSink。
每条日志会依次写入所有已注册的 sink。单个 sink 写入失败(panic)
不会影响其他 sink,因为 LogSink::write 要求实现方自行降级处理。
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for MultiOutputLogger
impl !UnwindSafe for MultiOutputLogger
impl Freeze for MultiOutputLogger
impl Send for MultiOutputLogger
impl Sync for MultiOutputLogger
impl Unpin for MultiOutputLogger
impl UnsafeUnpin for MultiOutputLogger
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more