1
0
Fork 0
mirror of https://github.com/shimataro/ssh-key-action.git synced 2025-06-19 22:52:10 +10:00
ssh-key-action/node_modules/pacote/lib/util/proclog.js
2019-09-18 20:39:54 +09:00

23 lines
340 B
JavaScript

'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)
}