mirror of
https://github.com/immich-app/immich.git
synced 2025-06-02 13:14:54 -04:00
15 lines
346 B
Dart
15 lines
346 B
Dart
import 'package:flutter/foundation.dart';
|
|
import 'package:logging/logging.dart';
|
|
|
|
mixin LogContext {
|
|
late final String ctx = logContext;
|
|
|
|
/// Context name of the log message
|
|
/// Override this to provide a custom name
|
|
String get logContext => runtimeType.toString();
|
|
|
|
@protected
|
|
@nonVirtual
|
|
Logger get log => Logger.detached(ctx);
|
|
}
|