Function ulog::init
[−]
[src]
pub fn init<F>(bufsize: usize, handle: F) -> Result<(), SetLoggerError> where
F: FnMut(LogMessage) -> (),
F: Send + 'static,
Initialize ulog logging.
Creates a new AsyncLogger
with a buffered channel of size bufsize
and
starts a handler thread that will call handle
for every LogMessage
received.