src/browser.js
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()

  LogBase.call(this, name, Object.assign({}, options, opts))
  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()

  LogBase.call(this, name, Object.assign({}, options, opts))
  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 ( ) LogBase . call ( this , name , Object . assign ( { } , options , opts ) ) 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