Function fil_logger::maybe_init
source · [−]pub fn maybe_init()
Expand description
Maybe initializes a new logger. It logs to stderr.
It will silently fail in case the logger cannot be initialized, e.g. due to some other logger already running. This is useful for using it in tests, where it is more important that the tests don’t fail due to the logger, rather than having this specific logger initialized.
For more information about the log format, see init
.
Panics
Panics if the value of RUST_LOG
is malformed.