Please tell us about your environment:
winston version?
- _
node -v outputs: nodejs8.10
- _Operating System? AWS Lambda
- _Language? ES6
What is the problem?
winston Console transport is missing Timestamp and request ID in AWS Lambda CloudWatch logs
e.g. 2019-04-15T12:47:57.129Z 3650fe89-33ea-12f4-3aec-77e4b0e3f45e
Every console.log has timestamp and ID attached so it's easy to search CloudWatch logs
but Winston Console transport is missing this automatically added info
if I delete these output options, Winston is forced to use console.log and console.error.
with this hack logging works as expected
delete console._stderr;
delete console._stdout;
What do you expect to happen instead?
an option to disable output to streams console._stderr and console._stdout
Please tell us about your environment:
winstonversion?winston@2winston@3node -voutputs: nodejs8.10What is the problem?
winston Console transport is missing Timestamp and request ID in AWS Lambda CloudWatch logs
e.g.
2019-04-15T12:47:57.129Z 3650fe89-33ea-12f4-3aec-77e4b0e3f45eEvery console.log has timestamp and ID attached so it's easy to search CloudWatch logs
but Winston Console transport is missing this automatically added info
if I delete these output options, Winston is forced to use console.log and console.error.
with this hack logging works as expected
What do you expect to happen instead?
an option to disable output to streams
console._stderrandconsole._stdout