As Shunter supports user-supplied logging instances, filters and transports, this required some work.
Deprecating filters meant removing structure.loggingFilters config and related code, and documentation changes.
Quite a bit of work was done to (hopefully!) improve the test code around the logging module generally. This resulted in a hard-to-read diff, so probably best to check out the code and look in an editor 😉
This PR also includes a first attempt at a migration guide from 4 to 5.
Dropping node 8 as a minimum supported version requires a major version bump for
winston
andwinston-syslog
.Updating Winston from version 2 to 3 means that custom logging filters can no longer be used as they are deprecated.
Instead
filters
should be migrated toformats
and supplied via a custom logging transport.As Shunter supports user-supplied logging instances, filters and transports, this required some work.
Deprecating filters meant removing
structure.loggingFilters
config and related code, and documentation changes.Quite a bit of work was done to (hopefully!) improve the test code around the logging module generally. This resulted in a hard-to-read diff, so probably best to check out the code and look in an editor 😉
This PR also includes a first attempt at a migration guide from 4 to 5.