You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted a generic transform stream where i can delete some fields, like hostname & v, but when i pipe be transform stream, the transform stream does not work.
my console.log("transform", rec); does log nothing, like the transform stream does nothing.
When is use my myWritable instead, it work as expected.
constLogger=require("./class.logger.js");constlogger=Logger.create("system");//console.log(logger, logger.fucker, logger.tracer)consttrace=logger.tracer("Count down to 3",3);logger.trace("Trace");trace("called 1");trace("called 2");trace("called 3");logger.debug("Debug");logger.info("Info");logger.warn("Warning");logger.error("error");logger.fatal("Fuck off, im done...")
The reason for the transform stream is, that i want to use multiple streams, like fs.createWriteStream & process.stdout or what ever, and dont want to code for very stream a filter that deleted the unwanted fields.
Any help/hint is appreciated.
I cant wrap my head around why this dosnt work, and the transform stream is ignored as soon it is somewhere piped.
BTW: I switched from winston to bunyan, because its has less dependencies & got faster results "hacking" bunyan than winston.
The text was updated successfully, but these errors were encountered:
I have a very simple setup, where i extend the bunyan logger:
I wanted a generic transform stream where i can delete some fields, like
hostname
&v
, but when i pipe be transform stream, the transform stream does not work.When i use the following stream setup:
my
console.log("transform", rec);
does log nothing, like the transform stream does nothing.When is use my
myWritable
instead, it work as expected.The reason for the transform stream is, that i want to use multiple streams, like
fs.createWriteStream
&process.stdout
or what ever, and dont want to code for very stream a filter that deleted the unwanted fields.Any help/hint is appreciated.
I cant wrap my head around why this dosnt work, and the transform stream is ignored as soon it is somewhere piped.
BTW: I switched from winston to bunyan, because its has less dependencies & got faster results "hacking" bunyan than winston.
The text was updated successfully, but these errors were encountered: