UNPKG

@railzai/railz-visualizations

Version:
34 lines 1.03 kB
/*! * Accounting Data as a Service™ is the solution that makes sense of your business customers' financial data. * Built with Stencil * Copyright (c) FIS. */ /** * File for managing logs, checks if debug is passed */ import { ConfigurationInstance } from './configuration'; export const warnLog = (...data) => { var _a; if ((_a = ConfigurationInstance.configuration) === null || _a === void 0 ? void 0 : _a.debug) { console.warn(data); } }; export const debugLog = (...data) => { var _a; if ((_a = ConfigurationInstance.configuration) === null || _a === void 0 ? void 0 : _a.debug) { console.debug(data); } }; export const errorLog = (...data) => { var _a; if ((_a = ConfigurationInstance.configuration) === null || _a === void 0 ? void 0 : _a.debug) { console.error(data); } }; export const infoLog = (...data) => { var _a; if ((_a = ConfigurationInstance.configuration) === null || _a === void 0 ? void 0 : _a.debug) { console.log(data); } }; //# sourceMappingURL=logger.js.map