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:
[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-locationis enabled:[2022-11-02 09:23:12.263] [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