pub struct StdlogBackend { /* private fields */ }Expand description
Structured log writer to stdout or stderr.
Each line is a JSON object with timestamp, level, and message fields.
Implementations§
Source§impl StdlogBackend
impl StdlogBackend
Sourcepub fn new(output: StdlogOutput, json: bool) -> Self
pub fn new(output: StdlogOutput, json: bool) -> Self
Create a new stdlog backend.
Sourcepub fn write_entry(&self, level: &str, message: &str)
pub fn write_entry(&self, level: &str, message: &str)
Write a log entry.
Auto Trait Implementations§
impl Freeze for StdlogBackend
impl RefUnwindSafe for StdlogBackend
impl Send for StdlogBackend
impl Sync for StdlogBackend
impl Unpin for StdlogBackend
impl UnsafeUnpin for StdlogBackend
impl UnwindSafe for StdlogBackend
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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