Closed Juanelorganelo closed 6 years ago
Interesting. I thought log items always had a level
property. Can you pass your own formatLog
implementation via the options and output the raw log item that it's trying to format? Thanks!
I was getting the same error and I managed to fix it by applying this patch:
let cwTransport = new CloudWatchTransport(config);
Object.assign(cwTransport, {
log:(...args) => {
let callback = args[1];
cwTransport._relay.submit({date:+new Date(), ...args[0], callback});
}
})
@frisibeli Are you on Winston v3 by any chance? It looks like the transport API changed.
@timdp Yes, my Winston version is winston@3.0.0-rc3
That would explain it. I started implementing Winston 3 support on the winston3
branch today but it's currently untested.
Any idea when this branch is going to be merged into master? As it is, using the branch directly with npm won't work.
Thanks for your patience. I've just published v3.0.0 which supports winston 3.
I'm getting an error using this transport, it appears to be from the library itself Here is the stack trace
here is the code