Type Definition file_per_thread_logger::FormatFn
source · pub type FormatFn = fn(_: &GetWriter<'_>, _: &Record<'_>) -> Result<()>;
Expand description
Format function to print logs in a custom format.
Note: to allow for reentrant log invocations, record.args()
must be reified before the writer
has been taken with the GetWriter
instance, otherwise double borrows runtime panics may
occur.