Function logger::write_fmt

source ·
pub fn write_fmt(args: Arguments<'_>) -> Result
Expand description

Convenience function for writing formatted arguments to the logger.

If the logger has not yet been initialized, no log messages will be emitted and an Error will be returned.

Tip: use the format_args!() macro from the core library to create the Arguments parameter needed here.