src/helpers/log-entry.js
/**
   * Format a log entry into a line that can be logged on the CLI
   *
   * @param {boolean} utc Indicates timestamps should be UTC
   * @return {string} A formatted string to log
   */
Format a log entry into a line that can be logged on the CLI
@param {boolean} utc Indicates timestamps should be UTC
@return {string} A formatted string to log
Format a log entry into a line that can be logged on the CLI @param { boolean } utc Indicates timestamps should be UTC @return { string } A formatted string to log
formattedSummary(utc = false) {
    const {status_code: statusCode, id, url} = this.raw
    const date = chalk.dim(`[${this.formattedDate(utc)}]`)
    const responseCodeColor = statusCode >= 200 && statusCode < 300 ? 'bgGreen' :
      statusCode >= 300 && statusCode < 400 ? 'bgYellow' : 'bgRed'
    const responseCode = chalk[responseCodeColor](` ${chalk.black(statusCode)} `)
    return `${date} ${responseCode} ${chalk.yellow(id)} ${url}`
  }
formattedSummary ( utc = false ) { const { status_code : statusCode , id , url } = this . raw const date = chalk . dim ( ` ${ this . formattedDate ( utc ) } ` ) const responseCodeColor = statusCode >= 200 && statusCode < 300 ? 'bgGreen' : statusCode >= 300 && statusCode < 400 ? 'bgYellow' : 'bgRed' const responseCode = chalk [ responseCodeColor ] ( ` ${ chalk . black ( statusCode ) } ` ) return ` ${ date } ${ responseCode } ${ chalk . yellow ( id ) } ${ url } ` }
Format a log entry into a line that can be logged on the CLI
 @param {boolean} utc Indicates timestamps should be UTC
 @return {string} A formatted string to log
Format a log entry into a line that can be logged on the CLI @param { boolean } utc Indicates timestamps should be UTC @return { string } A formatted string to log