AlkantarClanX12

Your IP : 18.188.91.223


Current Path : /opt/alt/alt-nodejs11/root/lib/node_modules/npm/node_modules.bundled/pacote/lib/util/
Upload File :
Current File : //opt/alt/alt-nodejs11/root/lib/node_modules/npm/node_modules.bundled/pacote/lib/util/proclog.js

'use strict'

const LEVELS = [
  'notice',
  'error',
  'warn',
  'info',
  'verbose',
  'http',
  'silly',
  'pause',
  'resume'
]

const logger = {}
for (const level of LEVELS) {
  logger[level] = log(level)
}
module.exports = logger

function log (level) {
  return (category, ...args) => process.emit('log', level, category, ...args)
}