stack_wallet/lib/models/isar/models/log.dart
2022-08-26 16:11:35 +08:00

22 lines
517 B
Dart

import 'package:isar/isar.dart';
// import 'package:stackwallet/models/isar/type_converters/log_level_converter.dart';
import 'package:stackwallet/utilities/enums/log_level_enum.dart';
part 'log.g.dart';
@Collection()
class Log {
Id id = Isar.autoIncrement;
late String message;
@Index()
late int timestampInMillisUTC;
late LogLevel logLevel;
@override
String toString() {
return "[${logLevel.name}][${DateTime.fromMillisecondsSinceEpoch(timestampInMillisUTC, isUtc: true)}]: $message";
}
}