diff --git a/CHANGELOG.md b/CHANGELOG.md index 532bcd2..29b454f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.0.1 + +- Do not store Logger reference in mutable private var to avoid immutable linter warning + ## 1.0.0 - Initial version diff --git a/lib/src/loggable.dart b/lib/src/loggable.dart index 99e2069..29f89d9 100644 --- a/lib/src/loggable.dart +++ b/lib/src/loggable.dart @@ -1,6 +1,5 @@ import 'package:logging/logging.dart'; class Loggable { - Logger _logger; - Logger get log => _logger ??= Logger(runtimeType.toString()); + Logger get log => Logger(runtimeType.toString()); } diff --git a/pubspec.yaml b/pubspec.yaml index 2b49b8e..74e3469 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: loggable description: Dart Loggable mixin. -version: 1.0.0 +version: 1.0.1 homepage: https://github.com/Hacker-CB/dart-loggable.git author: Pavel Sokolov