src/browser.js
/**
 * creates a new logger for the browser
 * @constructor
 * @param {String} name - namespace of Logger
 */
creates a new logger for the browser
@constructor
@param {String} name - namespace of Logger
creates a new logger for the browser @constructor @param { String } name - namespace of Logger
function Log (name, opts) {
  if (!(this instanceof Log)) return new Log(name, opts)
  const _storage = storage()
  Object.assign(options,
    inspectOpts(_storage),
    inspectNamespaces(_storage)
  )
  options.colors = options.colors === false ? false : supportsColors()
  const serializers = Object.assign({}, options.serializers, opts && opts.serializers)
  LogBase.call(this, name, Object.assign({}, options, opts, { serializers }))
  const colorFn = (c) => `color:${c}`
  this.color = selectColor(name, colorFn)
  this.levColors = levelColors(colorFn)
  this.queue = new Queue(this._sendLog.bind(this), 3)
}
function Log ( name , opts ) { if ( ! ( this instanceof Log ) ) return new Log ( name , opts ) const _storage = storage ( ) Object . assign ( options , inspectOpts ( _storage ) , inspectNamespaces ( _storage ) ) options . colors = options . colors === false ? false : supportsColors ( ) const serializers = Object . assign ( { } , options . serializers , opts && opts . serializers ) LogBase . call ( this , name , Object . assign ( { } , options , opts , { serializers } ) ) const colorFn = ( c ) => ` ${ c } ` this . color = selectColor ( name , colorFn ) this . levColors = levelColors ( colorFn ) this . queue = new Queue ( this . _sendLog . bind ( this ) , 3 ) }
creates a new logger for the browser
 @constructor
 @param {String} name - namespace of Logger
creates a new logger for the browser @constructor @param { String } name - namespace of Logger