#[non_exhaustive]pub struct PlainTextLayout {}
Expand description
A layout that formats log record as plain text.
Output format:
2024-08-11T22:44:57.172105+08:00 ERROR file: examples/file.rs:51 Hello error!
2024-08-11T22:44:57.172219+08:00 WARN file: examples/file.rs:52 Hello warn!
2024-08-11T22:44:57.172276+08:00 INFO file: examples/file.rs:53 Hello info!
2024-08-11T22:44:57.172329+08:00 DEBUG file: examples/file.rs:54 Hello debug!
2024-08-11T22:44:57.172382+08:00 TRACE file: examples/file.rs:55 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