D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
alt-nodejs14
/
root
/
usr
/
lib
/
node_modules
/
npm
/
node_modules
/
pacote
/
lib
/
util
/
Filename :
proclog.js
back
Copy
'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) }