@rettersoft/retter-log
Advanced tools
Comparing version
@@ -26,6 +26,8 @@ "use strict"; | ||
delete message.type; | ||
records.push({ | ||
const r = { | ||
PartitionKey: Date.now().toString(), | ||
Data: JSON.stringify({ ...message }), | ||
}); | ||
}; | ||
origlog("r: " + JSON.stringify(r)); | ||
records.push(r); | ||
} | ||
@@ -40,2 +42,5 @@ } | ||
try { | ||
origlog("Try"); | ||
origlog(RETTERLOG_KINESIS); | ||
origlog(records); | ||
await Kinesis.putRecords({ | ||
@@ -42,0 +47,0 @@ StreamName: RETTERLOG_KINESIS, |
14
index.ts
@@ -29,7 +29,8 @@ | ||
delete message.type; | ||
records.push({ | ||
PartitionKey: Date.now().toString(), | ||
Data: JSON.stringify({...message} ), | ||
} | ||
) | ||
const r = { | ||
PartitionKey: Date.now().toString(), | ||
Data: JSON.stringify({...message} ), | ||
} | ||
origlog("r: " + JSON.stringify(r)) | ||
records.push(r) | ||
} | ||
@@ -45,2 +46,5 @@ } | ||
try{ | ||
origlog("Try") | ||
origlog(RETTERLOG_KINESIS) | ||
origlog(records) | ||
await Kinesis.putRecords({ | ||
@@ -47,0 +51,0 @@ StreamName: RETTERLOG_KINESIS!, |
{ | ||
"name": "@rettersoft/retter-log", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"description": "Streams logs with certain format", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
4452
7.25%126
7.69%