Your IP : 18.222.111.44


Current Path : /opt/alt/alt-nodejs16/root/lib/node_modules/npm/node_modules/proc-log/lib/
Upload File :
Current File : //opt/alt/alt-nodejs16/root/lib/node_modules/npm/node_modules/proc-log/lib/index.js

// emits 'log' events on the process
const LEVELS = [
  'notice',
  'error',
  'warn',
  'info',
  'verbose',
  'http',
  'silly',
  'pause',
  'resume',
]

const log = level => (...args) => process.emit('log', level, ...args)

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

logger.LEVELS = LEVELS

module.exports = logger

?>