pub fn set_boxed_logger(logger: Box<dyn Log>) -> Result<(), SetLoggerError>
Expand description
Sets the global logger to a Box<Log>
.
This is a simple convenience wrapper over set_logger
, which takes a
Box<Log>
rather than a &'static Log
. See the documentation for
set_logger
for more details.
Requires the std
feature.
ยงErrors
An error is returned if a logger has already been set.