package.initializers.logger.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of neeto-commons-frontend Show documentation
Show all versions of neeto-commons-frontend Show documentation
A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.
import Logger from "js-logger";
export default function initializeLogger() {
/* eslint react-hooks/rules-of-hooks: "off" */
Logger.useDefaults();
if (process.env.RAILS_ENV === "production") {
Logger.setLevel(Logger.OFF);
}
window.logger = Logger;
}
//# sourceMappingURL=logger.js.map