mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-24 20:39:21 +00:00
22 lines
517 B
Dart
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";
|
|
}
|
|
}
|