transition-manager
Version:
Transition Manager. Framework independent transition manager to transition elements using states and actions.
41 lines (31 loc) • 697 B
JavaScript
;
Object.defineProperty(exports, '__esModule', {
value: true
});
/**
* Logger Class
* @return {object} Logger
*/
exports['default'] = (function () {
return {
/* toggle active state */
enabled: true,
initLogger: function initLogger(active) {
this.enabled = active;
},
setState: function setState(active) {
this.enabled = active;
},
log: function log(msg) {
if (this.enabled) {
console.log(':::: ' + this.name + ' :::: [ ' + msg + ' ] ');
}
},
error: function error(msg) {
if (this.enabled) {
console.error(':::: ' + this.name + ' :::: ***** ERROR ***** - [ ' + msg + ' ] ');
}
}
};
})();
module.exports = exports['default'];