Remove log viewer

This commit is contained in:
Yegor Vialov
2020-05-01 16:33:43 +00:00
parent 46ca1948e2
commit 320bc677e0
4 changed files with 0 additions and 78 deletions

View File

@ -1,4 +1,3 @@
import 'package:date_format/date_format.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter/material.dart';
import 'package:firebase_crashlytics/firebase_crashlytics.dart';
@ -7,16 +6,6 @@ enum ErrorLevel {ERROR, WARNING, DEBUG}
class Logger {
static List<String> _log = [];
static String getLog() {
String res = '';
_log.forEach((line) {
res += "$line\n";
});
return res;
}
static bool get isInDebugMode {
bool inDebugMode = false;
@ -47,11 +36,6 @@ class Logger {
} else if (!skipCrashlytics) {
Crashlytics.instance.recordError('$message', stacktrace);
}
DateTime t = DateTime.now();
_log.add("${formatDate(t, ["mm","dd"," ","HH",":","nn",":","ss"])} [$level] : $message");
if (_log.length > 100) {
_log.removeAt(0);
}
}
}