UNPKG

@netlify/content-engine

Version:
20 lines 814 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.startLogger = void 0; const startLogger = () => { // if child process - use ipc logger if (process.send && !process.env.GATSBY_WORKER_POOL_WORKER) { // FIXME: disable IPC logger when inside worker. IPC messages crash jest-worker. // This is just workaround to not crash process when reporter is used in worker context. // process.env.FORCE_COLOR = `0` require(`./loggers/ipc`).initializeIPCLogger(); } if (process.env?.GATSBY_LOGGER?.includes(`json`)) { require(`./loggers/json`).initializeJSONLogger(); } else { require(`./loggers/yurnalist`).initializeYurnalistLogger(); } }; exports.startLogger = startLogger; //# sourceMappingURL=start-logger.js.map