Function flutter_logger::init

source ·
pub fn init(
    sink: impl LogSink + 'static,
    filter: LevelFilter
) -> Result<(), SetLoggerError>
Expand description

initialize the Logger with a stream that sends LogEntries to dart/flutter

§Errors

return an error if a logger was already set