🚀
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user