fox_logging 1.1.0
fox_logging: ^1.1.0 copied to clipboard
Utilities for the logging package like Formatter, Sinks,... It provides a flow to make logging more structured by introducing sinks and formatters.
1.1.0 #
- feat: added
LogSinkMixin.log, which applies the filter and catches errors thrown bywrite. Use it instead ofwritewhen handing a record to a sink. - feat: added
LogSinkMixin.onError, called whenwritefails or a log-stream emits an error. It does nothing by default, so a failing sink can no longer bring down the program it logs for. - fix:
MultiLogSinkno longer bypasses the filters of the sinks it writes to. - fix:
StreamLogSink.disposecloses its stream, and completes even when nothing listened to the stream or the listener is paused. Previously it never completed, which also hung aMultiLogSinkwrapping such a sink. - fix:
MultiLogSink.disposedisposes the sinks it writes to. - fix:
LogSinkMixin.disposeno longer cancels the same subscription twice. - fix:
JsonLogRecordParser.parseLevelreturnsLevel.FINEfor unknown level names and values instead of throwing aStateError. - fix:
LogRecordFormatter.formatListseparates records with\ninstead of\r\n. - deprecated
LogSink, useLogSinkMixininstead. The built-in sinks keep extendingLogSinkduring the deprecation, so existingLogSinkvariables and collections keep compiling. The supertype is removed in 2.0.0. - docs: documented filters,
MultiLogSink,DevLogSink,JsonFormatterand the parsers in the readme. - docs: the
onErrorexample in the readme compiles now. - docs: documented the remaining public members: the
Loggershort-hands (v,d,f,c,i,w,e,wtf) and the constructors of the sinks and the filters. Thepublic_member_api_docslint keeps it that way. - ci: analyzer, formatting and workflow fixes, updated the GitHub Actions the workflows use and fixed the pana-score script.
1.0.2 #
- fix: export dev-log sink
1.0.0 #
- feat!: upgraded to dart v3
0.6.3 #
- marked mapMany as deprecated
0.6.2 #
- un-deprecated
PrintSink
0.6.1 #
- fix: expose
IoLogSink
0.6.0 #
- feat: added
IoLogSink - deprecated
PrintSink - fix: json log record parser would add stackTrace even when none is present
- fix: a bunch of tests
0.5.3 #
- feat: added formatList functions
0.5.2 #
- fix: json formatter threw on object and error
- ci stuff
0.5.0 #
- feat: added filters
- test: improved coverage
- ci: automated publish
0.2.0 #
- feat: added parse list to json log record parser
0.1.1 #
- fix: export stream log sink
0.1.0 #
- feat: added stream log sink
0.0.1 #
- Initial version.