addTarget (target, options) {
    if (typeof target === 'string') {
      target = require('./targets/' + target)
    }
    const targetObj = {
      log: target.bind(target, options || {}),
      blacklist: {},
      whitelist: {},
      leastVerbose: 0,
      mostVerbose: Infinity
    }
    Bristol._setFormatter(targetObj, DEFAULT_FORMATTER, {})
    this._targets.push(targetObj)
    return this._getTargetConfigChain(targetObj)
  }
/**
   * Adds a logging target to Bristol.  The options supplied apply only to the
   * target module itself.  A formatter can be set, and restrictions can be
   * placed on the messages that this target receives by chaining this call with
   * a series of calls on the returned configuration object.
   *
   * If no configuration options are set, the default formatter is 'json' and
   * the target will receive all log messages.
   * @param {string|function} target The name of a built-in target, or a
   *   function with the signature (options.<Object>, severity.<string>,
   *   date.<Date>, message.<String>). Note that the target is not responsible
   *   for doing anything with the severity and date, as those should be
   *   handled by the formatter. They are provided in the event that the
   *   target may change its behavior based on these values.
   * @param {{}} [options] An optional set of arguments specific to the target
   *   being added
   * @returns {{
   *   withFormatter,
   *   excluding,
   *   onlyIncluding,
   *   withLowestSeverity,
   *   withHighestSeverity
   * }} A config chain object
   */
Adds a logging target to Bristol.  The options supplied apply only to the
target module itself.  A formatter can be set, and restrictions can be
placed on the messages that this target receives by chaining this call with
a series of calls on the returned configuration object.

If no configuration options are set, the default formatter is 'json' and
the target will receive all log messages.
@param {string|function} target The name of a built-in target, or a
function with the signature (options., severity.,
date., message.). Note that the target is not responsible
for doing anything with the severity and date, as those should be
handled by the formatter. They are provided in the event that the
target may change its behavior based on these values.
@param {{}} [options] An optional set of arguments specific to the target
being added
@returns {{
withFormatter,
excluding,
onlyIncluding,
withLowestSeverity,
withHighestSeverity
}} A config chain object
Adds a logging target to Bristol . The options supplied apply only to the target module itself . A formatter can be set and restrictions can be placed on the messages that this target receives by chaining this call with a series of calls on the returned configuration object . If no configuration options are set the default formatter is ' json ' and the target will receive all log messages . @param { string|function } target The name of a built - in target or a function with the signature ( options . severity . date . message . ) . Note that the target is not responsible for doing anything with the severity and date as those should be handled by the formatter . They are provided in the event that the target may change its behavior based on these values . @param {{ }} [ options ] An optional set of arguments specific to the target being added @returns {{ withFormatter excluding onlyIncluding withLowestSeverity withHighestSeverity }} A config chain object
addTarget (target, options) {
    if (typeof target === 'string') {
      target = require('./targets/' + target)
    }
    const targetObj = {
      log: target.bind(target, options || {}),
      blacklist: {},
      whitelist: {},
      leastVerbose: 0,
      mostVerbose: Infinity
    }
    Bristol._setFormatter(targetObj, DEFAULT_FORMATTER, {})
    this._targets.push(targetObj)
    return this._getTargetConfigChain(targetObj)
  }
addTarget ( target , options ) { if ( typeof target === 'string' ) { target = require ( './targets/' + target ) } const targetObj = { log : target . bind ( target , options || { } ) , blacklist : { } , whitelist : { } , leastVerbose : 0 , mostVerbose : Infinity } Bristol . _setFormatter ( targetObj , DEFAULT_FORMATTER , { } ) this . _targets . push ( targetObj ) return this . _getTargetConfigChain ( targetObj ) }
Adds a logging target to Bristol.
Adds a logging target to Bristol .