chore(mobile): rename log enum to lowercase (#16476)

* chore(mobile): rename log enum to lowercase

* chore(mobile): do not abbreviate

---------

Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
shenlong
2025-03-02 18:00:48 +05:30
committed by GitHub
parent 6cc1978b2d
commit d8d87bb565
9 changed files with 80 additions and 89 deletions

View File

@@ -5,29 +5,24 @@ part 'log.entity.g.dart';
@Collection(inheritance: false)
class LoggerMessage {
Id id = Isar.autoIncrement;
String message;
String? details;
final Id id = Isar.autoIncrement;
final String message;
final String? details;
@Enumerated(EnumType.ordinal)
LogLevel level = LogLevel.INFO;
DateTime createdAt;
String? context1;
String? context2;
final LogLevel level;
final DateTime createdAt;
final String? context1;
final String? context2;
LoggerMessage({
const LoggerMessage({
required this.message,
required this.details,
required this.level,
this.level = LogLevel.info,
required this.createdAt,
required this.context1,
required this.context2,
});
@override
String toString() {
return 'LoggerMessage(message: $message, level: $level, createdAt: $createdAt)';
}
LogMessage toDto() {
return LogMessage(
message: message,