Is it possible to inject an argument into a log such as error, debug or info using the winston configuration (createLogger)?
I'd like to be able to intercept the log and inject an object into each log
Is it possible to inject an argument into a log such as error, debug or info using the winston configuration (createLogger)?
I'd like to be able to intercept the log and inject an object into each log
solution I used
export const correlationInjection = winston.format(info => {
info.correlationId = correlator.getId();
return info;
});
Thank you Phillisonstrike