activateLogcat method

Future activateLogcat()

Makes the logger write it's output to Androids logcat. Does only have to be called once during the startup of the app.

Implementation

Future activateLogcat() async {
  this.onRecord.listen((LogRecord record) {
    _LoggerToLogcat._channel.invokeListMethod(
        "log", [record.level.name, record.message, record.loggerName]);
  });
}