@graphteon/juricode
Version:
We are forging the future with lines of digital steel
27 lines • 739 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
class EventLogger {
static message(event) {
if (this.isDevMode) {
console.warn(JSON.stringify(JSON.parse(event.data.toString()), null, 2));
}
}
static event(event, name) {
if (this.isDevMode) {
console.warn(name || "EVENT", event);
}
}
static warning(warning) {
if (this.isDevMode) {
console.warn(warning);
}
}
static error(error) {
if (this.isDevMode) {
console.error(error);
}
}
}
EventLogger.isDevMode = process.env.NODE_ENV === "development";
exports.default = EventLogger;
//# sourceMappingURL=event-logger.js.map