pub struct Stderr { /* private fields */ }
Expand description
An appender that writes log records to standard error.
§Examples
use logforth_core::append::Stderr;
let stderr_appender = Stderr::default();
Implementations§
Source§impl Stderr
impl Stderr
Sourcepub fn with_layout(self, layout: impl Into<Box<dyn Layout>>) -> Self
pub fn with_layout(self, layout: impl Into<Box<dyn Layout>>) -> Self
Set the layout for the Stderr
appender.
Default to PlainTextLayout
.
§Examples
use logforth_core::append::Stderr;
use logforth_core::layout::PlainTextLayout;
let stderr_appender = Stderr::default().with_layout(PlainTextLayout::default());
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Stderr
impl !RefUnwindSafe for Stderr
impl Send for Stderr
impl Sync for Stderr
impl Unpin for Stderr
impl !UnwindSafe for Stderr
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