Type Alias 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.