- Added pub.dev
topics
. Thanks to @jonasfj (#74). - PrettyPrinter: Added
dateTimeFormat
option (backwards-compatible withprintTime
). Fixes #80.
- AdvancedFileOutput: Added file deletion option. Thanks to @lomby92 (#71).
- Added AdvancedFileOutput. Thanks to @pyciko (#65).
- Added missing acknowledgments in README.
- Improved README explanation about debug mode. Thanks to @gkuga (#57).
- Added web safe export. Fixes #58.
- Added
logger.init
to optionally await anyasync
init()
methods. Fixes #61.
- Meta update: Updated repository links to https://github.com/SourceHorizon/logger.
- Moved the default log level assignment to prevent weird lazy initialization bugs. Mitigates #38.
- Updated README to reflect v2.0.0 log signature change.
- 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.
-
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()
.- 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).
- 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.
- 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.
- Fixed conditional LogOutput export. Credits to @ChristopheOosterlynck #4.
- Reverted
${this}
interpolation and added linter ignore. #1
- Added origin LogEvent to OutputEvent. Addresses #133.
- Re-added LogListener and OutputListener (Should restore compatibility with logger_flutter).
- Replaced pedantic with lints.
- 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
- Stable nullsafety
- Convert to nullsafety. Credits to @DevNico
- Remove broken platform detection.
- Add
MultiOutput
. Credits to @gmpassos. - Handle browser Dart stacktraces in PrettyPrinter. Credits to @gmpassos.
- Add platform detection. Credits to @gmpassos.
- Catch output exceptions. Credits to @gmpassos.
- Several documentation fixes. Credits to @gmpassos.
- Add
PrefixPrinter
. Credits to @tkutcher. - Add
HybridPrinter
. Credits to @tkutcher.
- Fix logging output for Flutter Web. Credits to @nateshmbhat and @Cocotus.
- Remove
OutputCallback
andLogCallback
- Rename
SimplePrinter
s argumentuseColor
tocolors
- Rename
DebugFilter
toDevelopmentFilter
- Add LogfmtPrinter
- Add colored output to SimplePrinter
- Add StreamOutput
- Deprecate callbacks
- Fix SimplePrinter showTime #12
- Remove buffer field
- Update library structure (thanks @marcgraub!)
- Added
ProductionFilter
,FileOutput
,MemoryOutput
,SimplePrinter
- Breaking: Changed
LogFilter
,LogPrinter
andLogOutput
- Added option to output timestamp
- Added option to disable color
- Added
LogOutput
- Behaviour change of
LogPrinter
- Remove dependency
- Added emojis
LogFilter
is a class now
- First version of the new logger