Files
galaxy/static/scripts/packed/utils/add-logging.js
T

1 line
421 B
JavaScript

define([],function(){function a(d,c){var b=(d.prototype!==undefined)?(d.prototype):(d);if(c!==undefined){b._logNamespace=c}["debug","info","warn","error","metric"].forEach(function(e){b[e]=function(){if(!this.logger){return undefined}if(this.logger.emit){return this.logger.emit(e,this._logNamespace,arguments)}if(this.logger[e]){return this.logger[e].apply(this.logger,arguments)}return undefined}});return d}return a});