node_modules/.cache/esm/e644b176f657bcfc.js
/**
   * This will wholesale reconfigure this instance by:
   * 1. Resetting all transports. Older transports will be removed implicitly.
   * 2. Set all other options including levels, colors, rewriters, filters,
   *    exceptionHandlers, etc.
   * @param {!Object} options - TODO: add param description.
   * @returns {undefined}
   */
This will wholesale reconfigure this instance by:
1. Resetting all transports. Older transports will be removed implicitly.
2. Set all other options including levels, colors, rewriters, filters,
exceptionHandlers, etc.
@param {!Object} options - TODO: add param description.
@returns {undefined}
This will wholesale reconfigure this instance by : 1 . Resetting all transports . Older transports will be removed implicitly . 2 . Set all other options including levels colors rewriters filters exceptionHandlers etc . @param { !Object } options - TODO : add param description . @returns { undefined }
configure({
    silent,
    format,
    levels,
    level = 'info',
    exitOnError = true,
    transports,
    colors,
    emitErrs,
    formatters,
    padLevels,
    rewriters,
    stripColors,
    exceptionHandlers
  } = {}) {
    if (this.transports.length) {
      this.clear();
    }
    this.silent = silent;
    this.format = format || this.format || require('logform/json')();
    this.levels = levels || this.levels || config.npm.levels;
    this.level = level;
    this.exceptions = new ExceptionHandler(this);
    this.profilers = {};
    this.exitOnError = exitOnError;
    if (transports) {
      transports = Array.isArray(transports) ? transports : [transports];
      transports.forEach(transport => this.add(transport));
    }
    if (
      colors || emitErrs || formatters ||
      padLevels || rewriters || stripColors
    ) {
      throw new Error([
        '{ colors, emitErrs, formatters, padLevels, rewriters, stripColors } were removed in winston@3.0.0.',
        'Use a custom winston.format(function) instead.',
        'See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md'
      ].join('\n'));
    }
    if (exceptionHandlers) {
      this.exceptions.handle(exceptionHandlers);
    }
  }
configure ( { silent , format , levels , level = 'info' , exitOnError = true , transports , colors , emitErrs , formatters , padLevels , rewriters , stripColors , exceptionHandlers } = { } ) { if ( this . transports . length ) { this . clear ( ) ; } this . silent = silent ; this . format = format || this . format || require ( 'logform/json' ) ( ) ; this . levels = levels || this . levels || config . npm . levels ; this . level = level ; this . exceptions = new ExceptionHandler ( this ) ; this . profilers = { } ; this . exitOnError = exitOnError ; if ( transports ) { transports = Array . isArray ( transports ) ? transports : [ transports ] ; transports . forEach ( transport => this . add ( transport ) ) ; } if ( colors || emitErrs || formatters || padLevels || rewriters || stripColors ) { throw new Error ( [ '{ colors, emitErrs, formatters, padLevels, rewriters, stripColors } were removed in winston@3.0.0.' , 'Use a custom winston.format(function) instead.' , 'See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md' ] . join ( '\n' ) ) ; } if ( exceptionHandlers ) { this . exceptions . handle ( exceptionHandlers ) ; } }
This will wholesale reconfigure this instance by:
 1.
This will wholesale reconfigure this instance by : 1 .
// Reset transports if we already have them // Hoist other options onto this instance. // Add all transports we have been provided.