log.js 232 B

12345678910111213
  1. var log = require('npmlog')
  2. module.exports = function (rc, env) {
  3. log.heading = 'prebuild-install'
  4. if (rc.verbose) {
  5. log.level = 'verbose'
  6. } else {
  7. log.level = env.npm_config_loglevel || 'notice'
  8. }
  9. return log
  10. }