Skip to content

Commit 5aa82a5

Browse files
committed
Bumped version to 2.0.0
1 parent 6959328 commit 5aa82a5

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed

CHANGELOG.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,44 @@
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+
142
## 1.4.0
243
344
- Bumped upper SDK constraint to `<4.0.0`.

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: logger
22
description: Small, easy to use and extensible logger which prints beautiful logs.
3-
version: 1.4.0
3+
version: 2.0.0
44
repository: https://github.com/Bungeefan/logger
55

66
environment:

0 commit comments

Comments
 (0)