Struct spdlog::formatter::FullFormatter
source · [−]pub struct FullFormatter { /* private fields */ }
Expand description
A full info log records formatter.
It is the default formatter for sinks.
Log messages formatted by it look like:
-
Default:
[2021-12-23 01:23:45.067] [info] log message
-
If the logger has a name:
[2021-12-23 01:23:45.067] [logger-name] [info] log message
-
If crate feature
source-location
is enabled:[2021-12-23 01:23:45.067] [info] [crate::mod, main.rs:2] log message
Implementations
sourceimpl FullFormatter
impl FullFormatter
sourcepub fn new() -> FullFormatter
pub fn new() -> FullFormatter
Constructs a FullFormatter
.
Trait Implementations
sourceimpl Default for FullFormatter
impl Default for FullFormatter
sourcefn default() -> FullFormatter
fn default() -> FullFormatter
Returns the “default value” for a type. Read more
sourceimpl Formatter for FullFormatter
impl Formatter for FullFormatter
Auto Trait Implementations
impl !RefUnwindSafe for FullFormatter
impl Send for FullFormatter
impl Sync for FullFormatter
impl Unpin for FullFormatter
impl UnwindSafe for FullFormatter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more