code: function configureDebugMode (logLevel) {
    // because Listr logs to stdout (not configurable), make debug() do the same
    // otherwise file redirection gets very confusing
    debug.log = function () {
      const line = util.format.apply(util, arguments) + '\n'
      process.stdout.write(line)
    }
  
    // TTY-related configuration
    const supportsANSI = tty.isatty(process.stdout.fd)
    debug.useColors = () => supportsANSI
    if (!supportsANSI) {
      overrideDebugFormat()
    }
  
    // enable the right log levels
    if (logLevel === 'trace') debug.enable('*')
    if (logLevel === 'debug') debug.enable('thumbsup:error,thumbsup:warn,thumbsup:info,thumbsup:debug')
    if (logLevel === 'info') debug.enable('thumbsup:error,thumbsup:warn,thumbsup:info')
  
    // capture any additional console.log() calls, including Listr task updates
    console.log = require('debug')('thumbsup:info')
    console.info = require('debug')('thumbsup:info')
    console.warn = require('debug')('thumbsup:warn')
    console.error = require('debug')('thumbsup:error')
  }
docs: /*
  --log mode configuration