UNPKG

@bbc/spartacus

Version:
34 lines (28 loc) 838 B
"use strict"; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } /* eslint-disable no-console */ var Logger = function Logger() { _classCallCheck(this, Logger); this.error = function (arg) { return console.error("error - " + arg); }; this.warn = function (arg) { return console.warn("warn - " + arg); }; this.info = function (arg) { return console.info("info - " + arg); }; this.verbose = function (arg) { return console.log("verbose - " + arg); }; this.debug = function (arg) { return console.debug("debug - " + arg); }; this.silly = function (arg) { return console.log("silly - " + arg); }; }; var logger = function logger() { return new Logger(); }; module.exports = logger;