#[non_exhaustive]pub struct PlainTextLayout {}Expand description
A layout that formats log record as plain text.
Output format:
1760092868730397000 ERROR simple: simple.rs:24 Hello error!
1760092868730572000 WARN simple: simple.rs:25 Hello warn!
1760092868730576000 INFO simple: simple.rs:26 Hello info!
1760092868730579000 DEBUG simple: simple.rs:27 Hello debug!
1760092868730581000 TRACE simple: simple.rs:28 Hello trace!§Examples
use logforth_core::layout::PlainTextLayout;
let text_layout = PlainTextLayout::default();Trait Implementations§
Source§impl Clone for PlainTextLayout
impl Clone for PlainTextLayout
Source§fn clone(&self) -> PlainTextLayout
fn clone(&self) -> PlainTextLayout
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PlainTextLayout
impl Debug for PlainTextLayout
Source§impl Default for PlainTextLayout
impl Default for PlainTextLayout
Source§fn default() -> PlainTextLayout
fn default() -> PlainTextLayout
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PlainTextLayout
impl RefUnwindSafe for PlainTextLayout
impl Send for PlainTextLayout
impl Sync for PlainTextLayout
impl Unpin for PlainTextLayout
impl UnwindSafe for PlainTextLayout
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