Releases: SourceHorizon/logger
Releases · SourceHorizon/logger
v2.0.1
What's Changed
- Updated README to reflect v2.0.0 log signature change.
Full Changelog: v2.0.0...v2.0.1
v2.0.0
What's Changed
- Fixed supported platforms list.
- Removed reference to outdated
logger_flutterproject. Thanks to @yangsfang (#32). - Added override capability for logger defaults. Thanks to @yangsfang (#34).
Level.verbose,Level.wtfandLevel.nothinghave been deprecated and are replaced byLevel.trace,Level.fatalandLevel.off.
AdditionallyLevel.allhas been added.- PrettyPrinter: Added
levelColorsandlevelEmojisas constructor parameter.
Breaking changes
logsignature has been changed to closer match dart's developerlogfunction and allow for future optional parameters.
Additionally,timehas been added as an optional named parameter to support providing custom timestamps for LogEvents instead ofDateTime.now().Migration:
- Before:
logger.e("An error occurred!", error, stackTrace);
- After:
logger.e("An error occurred!", error: error, stackTrace: stackTrace);
- Before:
initandclosemethods ofLogFilter,LogOutputandLogPrinterare now async along withLogger.close(). (Fixes FileOutput)- LogListeners are now called on every LogEvent independent of the filter.
- PrettyPrinter:
includeBoxis now private. - PrettyPrinter:
errorMethodCountis now only considered if an error has been provided. OtherwisemethodCountis used. - PrettyPrinter: Static
levelColorsandlevelEmojishave been renamed todefaultLevelColorsanddefaultLevelEmojisand are used as fallback for their respective constructor parameters. - Levels are now sorted by their respective value instead of the enum index (Order didn't change).
New Contributors
- @yangsfang made their first contribution in #32
Full Changelog: v1.4.0...v2.0.0
v1.4.0
What's Changed
- Bumped upper SDK constraint to
<4.0.0. - Added
excludePathsto PrettyPrinter. Thanks to @Stitch-Taotao (#13). - Removed background color for
Level.errorandLevel.wtfto improve readability. - Improved PrettyPrinter documentation.
- Corrected README notice about ANSI colors.
New Contributors
- @Stitch-Taotao made their first contribution in #13
Full Changelog: v1.3.0...v1.4.0
v1.3.0
What's Changed
- Fixed stackTrace count when using
stackTraceBeginIndex. Addresses #114. - Added proper FileOutput stub. Addresses #94.
- Added
isClosed. Addresses #130. - Added
timeto LogEvent. - Added
errorhandling to LogfmtPrinter.
Full Changelog: v1.2.2...v1.3.0
v1.2.2
What's Changed
- Fixed conditional LogOutput export. Credits to @ChristopheOosterlynck #4.
New Contributors
- @ChristopheOosterlynck made their first contribution in #4
Full Changelog: v1.2.1...v1.2.2
v1.2.1
v1.2.0
v1.1.0
What's Changed
- Enhance boxing control with PrettyPrinter. Credits to @timmaffett
- Add trailing new line to FileOutput. Credits to @narumishi
- Add functions as a log message. Credits to @smotastic
Full Changelog: v1.0.0...v1.1.0
v1.0.0
v1.0.0-nullsafety.0
What's Changed
- Convert to nullsafety. Credits to @DevNico
Full Changelog: v0.9.4...v1.0.0-nullsafety.0