We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fbfe012 commit 9adacd5Copy full SHA for 9adacd5
lib/logger.js
@@ -92,6 +92,7 @@ export class JSONLogAttachment extends LogAttachment {
92
return Promise.resolve(serialize(m))
93
})
94
95
+ const date = new Date().toISOString()
96
Promise.all(messageParts)
97
.then(parts => {
98
return fetch(this.endpoint, {
@@ -104,7 +105,7 @@ export class JSONLogAttachment extends LogAttachment {
104
105
tags,
106
level: Object.entries(LogLevel).find(([k, v]) => v === level)[0],
107
message: parts.join(' '),
- createdAt: new Date().toISOString()
108
+ createdAt: date
109
110
111
}).catch(e => console.error('Error in JSONLogAttachment', e))
0 commit comments