flush () {
    const flushArr = []
    this.__logger.forEach(logger => {
      if (typeof logger.flush === 'function') {
        flushArr.push(logger.flush())
      }
    })

    return Promise.all(flushArr)
  }
/**
  * Calls flush in all loggers. Should be called before service terminates to avoid losing log data
   *
   * @method  flush
   * @returns {object} Returns a promise
   */
Calls flush in all loggers. Should be called before service terminates to avoid losing log data
@method  flush
@returns {object} Returns a promise
Calls flush in all loggers . Should be called before service terminates to avoid losing log data @method flush @returns { object } Returns a promise
flush () {
    const flushArr = []
    this.__logger.forEach(logger => {
      if (typeof logger.flush === 'function') {
        flushArr.push(logger.flush())
      }
    })
    return Promise.all(flushArr)
  }
flush ( ) { const flushArr = [ ] this . __logger . forEach ( logger => { if ( typeof logger . flush === 'function' ) { flushArr . push ( logger . flush ( ) ) } } ) return Promise . all ( flushArr ) }
Calls flush in all loggers.
Calls flush in all loggers .