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_flutter
project. Thanks to @yangsfang (#32). - Added override capability for logger defaults. Thanks to @yangsfang (#34).
Level.verbose
,Level.wtf
andLevel.nothing
have been deprecated and are replaced byLevel.trace
,Level.fatal
andLevel.off
.
AdditionallyLevel.all
has been added.- PrettyPrinter: Added
levelColors
andlevelEmojis
as constructor parameter.
Breaking changes
log
signature has been changed to closer match dart's developerlog
function and allow for future optional parameters.
Additionally,time
has 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:
init
andclose
methods ofLogFilter
,LogOutput
andLogPrinter
are now async along withLogger.close()
. (Fixes FileOutput)- LogListeners are now called on every LogEvent independent of the filter.
- PrettyPrinter:
includeBox
is now private. - PrettyPrinter:
errorMethodCount
is now only considered if an error has been provided. OtherwisemethodCount
is used. - PrettyPrinter: Static
levelColors
andlevelEmojis
have been renamed todefaultLevelColors
anddefaultLevelEmojis
and 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
excludePaths
to PrettyPrinter. Thanks to @Stitch-Taotao (#13). - Removed background color for
Level.error
andLevel.wtf
to 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
time
to LogEvent. - Added
error
handling 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