pub struct FtLogFormatter;
Expand description
Default ftlog formatter
The default ftlog format is like:
INFO main [examples/ftlog.rs:27] Hello, world!
Since ftlog cannot customize timestamp, the corresponding part is omitted.
The actual log output is like:
2022-11-22 17:02:12.574+08 0ms INFO main [examples/ftlog.rs:27] Hello, world!
Return a box object that contains required data (e.g. thread name, line of code, etc.) for later formatting into string
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.