package.initializers.logger.js.map 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.
{"version":3,"file":"logger.js","names":["Logger","initializeLogger","useDefaults","process","env","RAILS_ENV","setLevel","OFF","window","logger"],"sources":["../../src/initializers/logger.js"],"sourcesContent":["import Logger from \"js-logger\";\n\nexport default function initializeLogger() {\n /* eslint react-hooks/rules-of-hooks: \"off\" */\n Logger.useDefaults();\n if (process.env.RAILS_ENV === \"production\") {\n Logger.setLevel(Logger.OFF);\n }\n window.logger = Logger;\n}\n"],"mappings":"AAAA,OAAOA,MAAM,MAAM,WAAW;AAE9B,eAAe,SAASC,gBAAgBA,CAAA,EAAG;EACzC;EACAD,MAAM,CAACE,WAAW,CAAC,CAAC;EACpB,IAAIC,OAAO,CAACC,GAAG,CAACC,SAAS,KAAK,YAAY,EAAE;IAC1CL,MAAM,CAACM,QAAQ,CAACN,MAAM,CAACO,GAAG,CAAC;EAC7B;EACAC,MAAM,CAACC,MAAM,GAAGT,MAAM;AACxB","ignoreList":[]}