pub struct FullFormatter { /* private fields */ }
Expand description
Full information logs formatter.
It is the default formatter for most sinks.
Log messages formatted by it look like:
-
Default:
[2022-11-02 09:23:12.263] [info] hello, world!
-
If the logger has a name:
[2022-11-02 09:23:12.263] [logger-name] [info] hello, world!
-
If crate feature
source-location
is enabled:[2022-11-02 09:23:12.263] [logger-name] [info] [mod::path, src/main.rs:4] hello, world!
Implementations§
Source§impl FullFormatter
impl FullFormatter
Sourcepub fn new() -> FullFormatter
pub fn new() -> FullFormatter
Constructs a FullFormatter
.
Trait Implementations§
Source§impl Clone for FullFormatter
impl Clone for FullFormatter
Source§fn clone(&self) -> FullFormatter
fn clone(&self) -> FullFormatter
Returns a copy 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 Default for FullFormatter
impl Default for FullFormatter
Source§fn default() -> FullFormatter
fn default() -> FullFormatter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FullFormatter
impl RefUnwindSafe for FullFormatter
impl Send for FullFormatter
impl Sync for FullFormatter
impl Unpin for FullFormatter
impl UnwindSafe for FullFormatter
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