INNER CODE UNIT · Dart

debugModeOn

ShadyBoukhary/flutter_clean_architecture · lib/flutter_clean_architecture.dart:48

  static void debugModeOn() {
    Logger.root.level = Level.ALL;
    Logger.root.onRecord.listen((record) {
      dynamic e = record.error;
      print('${record.loggerName}: ${record.level.name}: ${record.message} ');
      if (e != null) {
        print(e.toString());
      }
    });

    Logger.root.info('Logger initialized.');
  }
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…