You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
425 B
19 lines
425 B
"use strict";
|
|
|
|
function _serializeError() {
|
|
const data = require("serialize-error");
|
|
_serializeError = function () {
|
|
return data;
|
|
};
|
|
return data;
|
|
}
|
|
class LogReporter {
|
|
update(event) {
|
|
if (event.error instanceof Error) {
|
|
event.error = (0, _serializeError().serializeError)(event.error);
|
|
}
|
|
console.log(JSON.stringify(event));
|
|
}
|
|
}
|
|
module.exports = LogReporter;
|
|
//# sourceMappingURL=index.js.map
|