- Fixed missing colored output for
VitStopWatch
when using [minWarnDuration] or [minErrorDuration].
- Added [showInfoLogs] to provide better control over what is printed.
- Fix exporting missing TerminalPrinter enum.
VitStopWatch
was reworked to improve usage.
- Exposed all models to default import;
- [BREAKING]
TextLogger
log methods (info, warm, error and debug) no longer return a future. If you created aTextLogger
that has logs asyncronously and you need to way for it to finish, you will need to create your own class. - Added
disableColorfulOutput
static field inTerminalLogger
. - Added
printer
static field toTerminalLogger
.
- Added event filtering: Each logger instance now has an optional
event
. This event can be filtered out by changingVitLogger.eventMatcher
.
- Added 'debug' log level.
- Added
useColorfulOutput
option to TerminalLog to improve control. This option is useful to disable colors when using Flutter on web since the browser console does not support ANSI escape codes. - TerminalLog's 'info' log level now outputs in green color.
- Initial version.