|
| 1 | +## 2.0.0 |
| 2 | + |
| 3 | +- Fixed supported platforms list. |
| 4 | +- Removed reference to outdated `logger_flutter` project. |
| 5 | + Thanks to @yangsfang ([#32](https://github.com/Bungeefan/logger/pull/32)). |
| 6 | +- Added override capability for logger defaults. |
| 7 | + Thanks to @yangsfang ([#34](https://github.com/Bungeefan/logger/pull/34)). |
| 8 | +- `Level.verbose`, `Level.wtf` and `Level.nothing` have been deprecated and are replaced |
| 9 | + by `Level.trace`, `Level.fatal` and `Level.off`. |
| 10 | + Additionally `Level.all` has been added. |
| 11 | +- PrettyPrinter: Added `levelColors` and `levelEmojis` as constructor parameter. |
| 12 | + |
| 13 | +### Breaking changes |
| 14 | + |
| 15 | +- `log` signature has been changed to closer match dart's developer `log` function and allow for |
| 16 | + future |
| 17 | + optional parameters. |
| 18 | + |
| 19 | + Additionally, `time` has been added as an optional named parameter to support providing custom |
| 20 | + timestamps for LogEvents instead of `DateTime.now()`. |
| 21 | + |
| 22 | + #### Migration: |
| 23 | + - Before: |
| 24 | + ```dart |
| 25 | + logger.e("An error occurred!", error, stackTrace); |
| 26 | + ``` |
| 27 | + - After: |
| 28 | + ```dart |
| 29 | + logger.e("An error occurred!", error: error, stackTrace: stackTrace); |
| 30 | + ``` |
| 31 | +- `init` and `close` methods of `LogFilter`, `LogOutput` and `LogPrinter` are now async along |
| 32 | + with `Logger.close()`. |
| 33 | + (Fixes FileOutput) |
| 34 | +- LogListeners are now called on every LogEvent independent of the filter. |
| 35 | +- PrettyPrinter: `includeBox` is now private. |
| 36 | +- PrettyPrinter: `errorMethodCount` is now only considered if an error has been provided. |
| 37 | + Otherwise `methodCount` is used. |
| 38 | +- PrettyPrinter: Static `levelColors` and `levelEmojis` have been renamed to `defaultLevelColors` |
| 39 | + and `defaultLevelEmojis` and are used as fallback for their respective constructor parameters. |
| 40 | +- Levels are now sorted by their respective value instead of the enum index (Order didn't change). |
| 41 | +
|
1 | 42 | ## 1.4.0
|
2 | 43 |
|
3 | 44 | - Bumped upper SDK constraint to `<4.0.0`.
|
|
0 commit comments