Add seq Error handler

This commit is contained in:
zkldi
2021-12-24 04:38:21 +00:00
parent 2aae5d3118
commit 2bcca36af8
+4
View File
@@ -170,6 +170,10 @@ if (ServerConfig.LOGGER_CONFIG.SEQ_API_KEY && Environment.seqUrl) {
new SeqTransport({
apiKey: ServerConfig.LOGGER_CONFIG.SEQ_API_KEY,
serverUrl: Environment.seqUrl,
onError: (err) => {
// eslint-disable-next-line no-console
console.error(`Failed to send seq message: ${err.message}.`);
},
levelMapper(level = "") {
return levelMap[level] ?? "information";
},