winston-azure-application-insights
winston-azure-application-insights copied to clipboard
'handleExceptions: true' log twice
There is only one transport, added like this:
winston.add(winston.createLogger({
transports: [
new winston.transports.Console({
handleExceptions: true,
format: winston.format.combine(
winston.format.simple()
),
}),
]
}));
When a new Error thrown from index.js
:
throw new Error('++++ I will log twice ++++')
will result in two separate logs!
I've also tried transport.File({ ... })
, but the same result.
Updated stackoverflow question is here: https://stackoverflow.com/questions/55236098