refactor: logging

This commit is contained in:
shenlong-tanwen
2024-09-21 10:14:21 +05:30
parent ded4481190
commit 239bca0cda
14 changed files with 105 additions and 72 deletions
@@ -0,0 +1,8 @@
import 'package:flutter/foundation.dart';
import 'package:immich_mobile/utils/log_manager.dart';
mixin LogMixin {
@protected
@nonVirtual
Logger get log => LogManager.I.get(runtimeType.toString());
}
@@ -1,8 +0,0 @@
import 'package:flutter/foundation.dart';
import 'package:logging/logging.dart';
mixin LogContext {
@protected
@nonVirtual
Logger get log => Logger(runtimeType.toString());
}