winston-cloudwatch
winston-cloudwatch copied to clipboard
winston end command, don't flush on AWS
Hello
I think I am using the module incorrectly.
I send the logs to AWS, except at the end of my main function I have this
logger.on('finish', () => {
process.exit();
});
logger.end()
and in this case, the traces are not pushed to AWS.
If I put
setTimeout(() => {logger.end()},5000)
It works. If I don't put
logger.end()
,the end of the program never happens.
+1
+1
I will also look into this as part of #193 work.