|
1 | 1 | ## 2.5.0
|
2 | 2 |
|
3 |
| -- AdvancedFileOutput: Added support for custom `fileUpdateDuration`. Thanks to |
| 3 | +* AdvancedFileOutput: Added support for custom `fileUpdateDuration`. Thanks to |
4 | 4 | @shlowdy ([#86](https://github.com/SourceHorizon/logger/pull/86)).
|
5 |
| -- README: Fixed outdated LogOutput documentation. |
| 5 | +* README: Fixed outdated LogOutput documentation. |
6 | 6 |
|
7 | 7 | ## 2.4.0
|
8 | 8 |
|
9 |
| -- Added pub.dev `topics`. Thanks to |
| 9 | +* Added pub.dev `topics`. Thanks to |
10 | 10 | @jonasfj ([#74](https://github.com/SourceHorizon/logger/pull/74)).
|
11 |
| -- PrettyPrinter: Added `dateTimeFormat` option (backwards-compatible with `printTime`). |
| 11 | +* PrettyPrinter: Added `dateTimeFormat` option (backwards-compatible with `printTime`). |
12 | 12 | Fixes [#80](https://github.com/SourceHorizon/logger/issues/80).
|
13 | 13 |
|
14 | 14 | ## 2.3.0
|
15 | 15 |
|
16 |
| -- AdvancedFileOutput: Added file deletion option. Thanks to |
| 16 | +* AdvancedFileOutput: Added file deletion option. Thanks to |
17 | 17 | @lomby92 ([#71](https://github.com/SourceHorizon/logger/pull/71)).
|
18 | 18 |
|
19 | 19 | ## 2.2.0
|
20 | 20 |
|
21 |
| -- Added AdvancedFileOutput. Thanks to |
| 21 | +* Added AdvancedFileOutput. Thanks to |
22 | 22 | @pyciko ([#65](https://github.com/SourceHorizon/logger/pull/65)).
|
23 |
| -- Added missing acknowledgments in README. |
| 23 | +* Added missing acknowledgments in README. |
24 | 24 |
|
25 | 25 | ## 2.1.0
|
26 | 26 |
|
27 |
| -- Improved README explanation about debug mode. Thanks to |
| 27 | +* Improved README explanation about debug mode. Thanks to |
28 | 28 | @gkuga ([#57](https://github.com/SourceHorizon/logger/pull/57)).
|
29 |
| -- Added web safe export. Fixes [#58](https://github.com/SourceHorizon/logger/issues/58). |
30 |
| -- Added `logger.init` to optionally await any `async` `init()` methods. |
| 29 | +* Added web safe export. Fixes [#58](https://github.com/SourceHorizon/logger/issues/58). |
| 30 | +* Added `logger.init` to optionally await any `async` `init()` methods. |
31 | 31 | Fixes [#61](https://github.com/SourceHorizon/logger/issues/61).
|
32 | 32 |
|
33 | 33 | ## 2.0.2+1
|
34 | 34 |
|
35 |
| -- Meta update: Updated repository links to https://github.com/SourceHorizon/logger. |
| 35 | +* Meta update: Updated repository links to https://github.com/SourceHorizon/logger. |
36 | 36 |
|
37 | 37 | ## 2.0.2
|
38 | 38 |
|
39 |
| -- Moved the default log level assignment to prevent weird lazy initialization bugs. |
| 39 | +* Moved the default log level assignment to prevent weird lazy initialization bugs. |
40 | 40 | Mitigates [#38](https://github.com/SourceHorizon/logger/issues/38).
|
41 | 41 |
|
42 | 42 | ## 2.0.1
|
43 | 43 |
|
44 |
| -- Updated README to reflect v2.0.0 log signature change. |
| 44 | +* Updated README to reflect v2.0.0 log signature change. |
45 | 45 |
|
46 | 46 | ## 2.0.0
|
47 | 47 |
|
48 |
| -- Fixed supported platforms list. |
49 |
| -- Removed reference to outdated `logger_flutter` project. |
| 48 | +* Fixed supported platforms list. |
| 49 | +* Removed reference to outdated `logger_flutter` project. |
50 | 50 | Thanks to @yangsfang ([#32](https://github.com/SourceHorizon/logger/pull/32)).
|
51 |
| -- Added override capability for logger defaults. |
| 51 | +* Added override capability for logger defaults. |
52 | 52 | Thanks to @yangsfang ([#34](https://github.com/SourceHorizon/logger/pull/34)).
|
53 |
| -- `Level.verbose`, `Level.wtf` and `Level.nothing` have been deprecated and are replaced |
| 53 | +* `Level.verbose`, `Level.wtf` and `Level.nothing` have been deprecated and are replaced |
54 | 54 | by `Level.trace`, `Level.fatal` and `Level.off`.
|
55 | 55 | Additionally `Level.all` has been added.
|
56 |
| -- PrettyPrinter: Added `levelColors` and `levelEmojis` as constructor parameter. |
| 56 | +* PrettyPrinter: Added `levelColors` and `levelEmojis` as constructor parameter. |
57 | 57 |
|
58 | 58 | ### Breaking changes
|
59 | 59 |
|
60 |
| -- `log` signature has been changed to closer match dart's developer `log` function and allow for |
61 |
| - future |
62 |
| - optional parameters. |
| 60 | +* `log` signature has been changed to closer match dart's developer `log` function and allow for |
| 61 | + future optional parameters. |
63 | 62 |
|
64 | 63 | Additionally, `time` has been added as an optional named parameter to support providing custom
|
65 | 64 | timestamps for LogEvents instead of `DateTime.now()`.
|
66 | 65 |
|
67 | 66 | #### Migration:
|
68 |
| - - Before: |
| 67 | + * Before: |
69 | 68 | ```dart
|
70 | 69 | logger.e("An error occurred!", error, stackTrace);
|
71 | 70 | ```
|
72 |
| - - After: |
| 71 | + * After: |
73 | 72 | ```dart
|
74 | 73 | logger.e("An error occurred!", error: error, stackTrace: stackTrace);
|
75 | 74 | ```
|
76 |
| -- `init` and `close` methods of `LogFilter`, `LogOutput` and `LogPrinter` are now async along |
77 |
| - with `Logger.close()`. |
78 |
| - (Fixes FileOutput) |
79 |
| -- LogListeners are now called on every LogEvent independent of the filter. |
80 |
| -- PrettyPrinter: `includeBox` is now private. |
81 |
| -- PrettyPrinter: `errorMethodCount` is now only considered if an error has been provided. |
| 75 | +* `init` and `close` methods of `LogFilter`, `LogOutput` and `LogPrinter` are now async along |
| 76 | + with `Logger.close()`. (Fixes FileOutput) |
| 77 | +* LogListeners are now called on every LogEvent independent of the filter. |
| 78 | +* PrettyPrinter: `includeBox` is now private. |
| 79 | +* PrettyPrinter: `errorMethodCount` is now only considered if an error has been provided. |
82 | 80 | Otherwise `methodCount` is used.
|
83 |
| -- PrettyPrinter: Static `levelColors` and `levelEmojis` have been renamed to `defaultLevelColors` |
| 81 | +* PrettyPrinter: Static `levelColors` and `levelEmojis` have been renamed to `defaultLevelColors` |
84 | 82 | and `defaultLevelEmojis` and are used as fallback for their respective constructor parameters.
|
85 |
| -- Levels are now sorted by their respective value instead of the enum index (Order didn't change). |
| 83 | +* Levels are now sorted by their respective value instead of the enum index (Order didn't change). |
86 | 84 |
|
87 | 85 | ## 1.4.0
|
88 | 86 |
|
89 |
| -- Bumped upper SDK constraint to `<4.0.0`. |
90 |
| -- Added `excludePaths` to PrettyPrinter. |
91 |
| - Thanks to @Stitch-Taotao ([#13](https://github.com/simc/logger/pull/13)). |
92 |
| -- Removed background color for `Level.error` and `Level.wtf` to improve readability. |
93 |
| -- Improved PrettyPrinter documentation. |
94 |
| -- Corrected README notice about ANSI colors. |
| 87 | +* Bumped upper SDK constraint to `<4.0.0`. |
| 88 | +* Added `excludePaths` to PrettyPrinter. Thanks to |
| 89 | + @Stitch-Taotao ([#13](https://github.com/SourceHorizon/logger/pull/13)). |
| 90 | +* Removed background color for `Level.error` and `Level.wtf` to improve readability. |
| 91 | +* Improved PrettyPrinter documentation. |
| 92 | +* Corrected README notice about ANSI colors. |
95 | 93 |
|
96 | 94 | ## 1.3.0
|
97 | 95 |
|
98 |
| -- Fixed stackTrace count when using `stackTraceBeginIndex`. |
| 96 | +* Fixed stackTrace count when using `stackTraceBeginIndex`. |
99 | 97 | Addresses [#114](https://github.com/simc/logger/issues/114).
|
100 |
| -- Added proper FileOutput stub. Addresses [#94](https://github.com/simc/logger/issues/94). |
101 |
| -- Added `isClosed`. Addresses [#130](https://github.com/simc/logger/issues/130). |
102 |
| -- Added `time` to LogEvent. |
103 |
| -- Added `error` handling to LogfmtPrinter. |
| 98 | +* Added proper FileOutput stub. Addresses [#94](https://github.com/simc/logger/issues/94). |
| 99 | +* Added `isClosed`. Addresses [#130](https://github.com/simc/logger/issues/130). |
| 100 | +* Added `time` to LogEvent. |
| 101 | +* Added `error` handling to LogfmtPrinter. |
104 | 102 |
|
105 | 103 | ## 1.2.2
|
106 | 104 |
|
107 |
| -- Fixed conditional LogOutput export. Credits to |
| 105 | +* Fixed conditional LogOutput export. Credits to |
108 | 106 | @ChristopheOosterlynck [#4](https://github.com/SourceHorizon/logger/pull/4).
|
109 | 107 |
|
110 | 108 | ## 1.2.1
|
111 | 109 |
|
112 |
| -- Reverted `${this}` interpolation and added linter |
| 110 | +* Reverted `${this}` interpolation and added linter |
113 | 111 | ignore. [#1](https://github.com/SourceHorizon/logger/issues/1)
|
114 | 112 |
|
115 | 113 | ## 1.2.0
|
116 | 114 |
|
117 |
| -- Added origin LogEvent to OutputEvent. Addresses [#133](https://github.com/simc/logger/pull/133). |
118 |
| -- Re-added LogListener and OutputListener (Should restore compatibility with logger_flutter). |
119 |
| -- Replaced pedantic with lints. |
| 115 | +* Added origin LogEvent to OutputEvent. Addresses [#133](https://github.com/simc/logger/pull/133). |
| 116 | +* Re-added LogListener and OutputListener (Should restore compatibility with logger_flutter). |
| 117 | +* Replaced pedantic with lints. |
120 | 118 |
|
121 | 119 | ## 1.1.0
|
122 | 120 |
|
123 |
| -- Enhance boxing control with PrettyPrinter. Credits to @timmaffett |
124 |
| -- Add trailing new line to FileOutput. Credits to @narumishi |
125 |
| -- Add functions as a log message. Credits to @smotastic |
| 121 | +* Enhance boxing control with PrettyPrinter. Credits to @timmaffett |
| 122 | +* Add trailing new line to FileOutput. Credits to @narumishi |
| 123 | +* Add functions as a log message. Credits to @smotastic |
126 | 124 |
|
127 | 125 | ## 1.0.0
|
128 | 126 |
|
129 |
| -- Stable nullsafety |
| 127 | +* Stable nullsafety |
130 | 128 |
|
131 | 129 | ## 1.0.0-nullsafety.0
|
132 | 130 |
|
133 |
| -- Convert to nullsafety. Credits to @DevNico |
| 131 | +* Convert to nullsafety. Credits to @DevNico |
134 | 132 |
|
135 | 133 | ## 0.9.4
|
136 | 134 |
|
137 |
| -- Remove broken platform detection. |
| 135 | +* Remove broken platform detection. |
138 | 136 |
|
139 | 137 | ## 0.9.3
|
140 | 138 |
|
141 |
| -- Add `MultiOutput`. Credits to @gmpassos. |
142 |
| -- Handle browser Dart stacktraces in PrettyPrinter. Credits to @gmpassos. |
143 |
| -- Add platform detection. Credits to @gmpassos. |
144 |
| -- Catch output exceptions. Credits to @gmpassos. |
145 |
| -- Several documentation fixes. Credits to @gmpassos. |
| 139 | +* Add `MultiOutput`. Credits to @gmpassos. |
| 140 | +* Handle browser Dart stacktraces in PrettyPrinter. Credits to @gmpassos. |
| 141 | +* Add platform detection. Credits to @gmpassos. |
| 142 | +* Catch output exceptions. Credits to @gmpassos. |
| 143 | +* Several documentation fixes. Credits to @gmpassos. |
146 | 144 |
|
147 | 145 | ## 0.9.2
|
148 | 146 |
|
149 |
| -- Add `PrefixPrinter`. Credits to @tkutcher. |
150 |
| -- Add `HybridPrinter`. Credits to @tkutcher. |
| 147 | +* Add `PrefixPrinter`. Credits to @tkutcher. |
| 148 | +* Add `HybridPrinter`. Credits to @tkutcher. |
151 | 149 |
|
152 | 150 | ## 0.9.1
|
153 | 151 |
|
154 |
| -- Fix logging output for Flutter Web. Credits to @nateshmbhat and @Cocotus. |
| 152 | +* Fix logging output for Flutter Web. Credits to @nateshmbhat and @Cocotus. |
155 | 153 |
|
156 | 154 | ## 0.9.0
|
157 | 155 |
|
158 |
| -- Remove `OutputCallback` and `LogCallback` |
159 |
| -- Rename `SimplePrinter`s argument `useColor` to `colors` |
160 |
| -- Rename `DebugFilter` to `DevelopmentFilter` |
| 156 | +* Remove `OutputCallback` and `LogCallback` |
| 157 | +* Rename `SimplePrinter`s argument `useColor` to `colors` |
| 158 | +* Rename `DebugFilter` to `DevelopmentFilter` |
161 | 159 |
|
162 | 160 | ## 0.8.3
|
163 | 161 |
|
164 |
| -- Add LogfmtPrinter |
165 |
| -- Add colored output to SimplePrinter |
| 162 | +* Add LogfmtPrinter |
| 163 | +* Add colored output to SimplePrinter |
166 | 164 |
|
167 | 165 | ## 0.8.2
|
168 | 166 |
|
169 |
| -- Add StreamOutput |
| 167 | +* Add StreamOutput |
170 | 168 |
|
171 | 169 | ## 0.8.1
|
172 | 170 |
|
173 |
| -- Deprecate callbacks |
| 171 | +* Deprecate callbacks |
174 | 172 |
|
175 | 173 | ## 0.8.0
|
176 | 174 |
|
177 |
| -- Fix SimplePrinter showTime #12 |
178 |
| -- Remove buffer field |
179 |
| -- Update library structure (thanks @marcgraub!) |
| 175 | +* Fix SimplePrinter showTime #12 |
| 176 | +* Remove buffer field |
| 177 | +* Update library structure (thanks @marcgraub!) |
180 | 178 |
|
181 | 179 | ## 0.7.0+1
|
182 | 180 |
|
183 |
| -- Added `ProductionFilter`, `FileOutput`, `MemoryOutput`, `SimplePrinter` |
184 |
| -- Breaking: Changed `LogFilter`, `LogPrinter` and `LogOutput` |
| 181 | +* Added `ProductionFilter`, `FileOutput`, `MemoryOutput`, `SimplePrinter` |
| 182 | +* Breaking: Changed `LogFilter`, `LogPrinter` and `LogOutput` |
185 | 183 |
|
186 | 184 | ## 0.6.0
|
187 | 185 |
|
188 |
| -- Added option to output timestamp |
189 |
| -- Added option to disable color |
190 |
| -- Added `LogOutput` |
191 |
| -- Behaviour change of `LogPrinter` |
192 |
| -- Remove dependency |
| 186 | +* Added option to output timestamp |
| 187 | +* Added option to disable color |
| 188 | +* Added `LogOutput` |
| 189 | +* Behaviour change of `LogPrinter` |
| 190 | +* Remove dependency |
193 | 191 |
|
194 | 192 | ## 0.5.0
|
195 | 193 |
|
196 |
| -- Added emojis |
197 |
| -- `LogFilter` is a class now |
| 194 | +* Added emojis |
| 195 | +* `LogFilter` is a class now |
198 | 196 |
|
199 | 197 | ## 0.4.0
|
200 | 198 |
|
201 |
| -- First version of the new logger |
| 199 | +* First version of the new logger |
0 commit comments