UNPKG

@graphteon/juricode

Version:

We are forging the future with lines of digital steel

25 lines 659 B
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"; export default EventLogger; //# sourceMappingURL=event-logger.js.map