The winston Logger attempts to call .end() on every transport it is currently piped to before emitting the finish event (see: logger.js)
By implementing _final(callback) from the WritableStream API we ensure that any resources from the FluentSender are cleaned up (e.g. sockets that need to be destroyed).
p.s. thanks for helping grow & support the winston ecosystem 👍🥇💯
The
winston
Logger attempts to call.end()
on every transport it is currently piped to before emitting thefinish
event (see: logger.js)By implementing
_final(callback)
from theWritableStream
API we ensure that any resources from theFluentSender
are cleaned up (e.g. sockets that need to be destroyed).