this.level.format.transform with try / catch.readable-stream package to get the _final semantics across all versions of Node.TransportStream and LegacyTransportStream now requires the new keyword.No longer works
const Transport = require('winston-transport');
const transport = Transport({
log: (info, callback) => { /* log something */ }
});
Do this instead
const Transport = require('winston-transport');
const transport = new Transport({
log: (info, callback) => { /* log something */ }
});
Unpublished: overlooked that 26f816e introduced a breaking change.
.log. Fixes [#12].d.ts.travis.yml.silent option to TransportStream. Still needs to be implemented
for LegacyTransportStream.mocha to ^5.0.5.nyc to ^11.6.0.README.md.Symbol.for('level') to lookup immutable level on info objects.{ format }, if provided.winston-transport base implementations:
TransportStream: the new objectMode Writable stream which should be the base for all future Transports after winston >= 3.LegacyTransportStream: the backwards compatible wrap to Transports written for winston < 3. There isn't all that much different for those implementors except that log(level, message, meta, callback) is now log(info, callback) where info is the object being plumbed along the objectMode pipe-chain. This was absolutely critical to not "break the ecosystem" and give the over 500 Transport package authors an upgrade path.WritableStream goodies:TransportStreamLegacyTransportStream_writev for TransportStream_writev for LegacyTransportStreamrequire-able version.