logger edit
parent
b733132327
commit
72df9c777c
|
|
@ -38,18 +38,18 @@ import 'package:logger/logger.dart';
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
|
||||||
//Logger getLogger(String className) {
|
// Logger getLogger(String className) {
|
||||||
// //return Logger(printer: SimpleLogPrinter(className));
|
// //return Logger(printer: SimpleLogPrinter(className));
|
||||||
// return Logger(
|
// return Logger(
|
||||||
// printer: PrettyPrinter(
|
// printer: PrettyPrinter(
|
||||||
// methodCount: 1, // number of method calls to be displayed
|
// methodCount: 1, // number of method calls to be displayed
|
||||||
// errorMethodCount: 1, // number of method calls if stacktrace is provided
|
// errorMethodCount: 1, // number of method calls if stacktrace is provided
|
||||||
// lineLength: 120, // width of the output
|
// lineLength: 120, // width of the output
|
||||||
// colors: false, // Colorful log messages
|
// colors: true, // Colorful log messages
|
||||||
// printEmojis: false, // Print an emoji for each log message
|
// printEmojis: false, // Print an emoji for each log message
|
||||||
// printTime: false // Should each log print contain a timestamp
|
// printTime: false // Should each log print contain a timestamp
|
||||||
// ));
|
// ));
|
||||||
//}
|
// }
|
||||||
|
|
||||||
|
|
||||||
Logger getLogger(String className) {
|
Logger getLogger(String className) {
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,6 @@ class DbService extends BaseService {
|
||||||
_initDatabase() async {
|
_initDatabase() async {
|
||||||
Directory documentsDirectory = await getApplicationDocumentsDirectory();
|
Directory documentsDirectory = await getApplicationDocumentsDirectory();
|
||||||
String path = join(documentsDirectory.path, _databaseName);
|
String path = join(documentsDirectory.path, _databaseName);
|
||||||
print(path);
|
|
||||||
return await openDatabase(path,
|
return await openDatabase(path,
|
||||||
version: _databaseVersion,
|
version: _databaseVersion,
|
||||||
onUpgrade: _onUpdate,
|
onUpgrade: _onUpdate,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue