'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) }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
cache-key.js | File | 129 B | 0644 |
|
finished.js | File | 419 B | 0644 |
|
git.js | File | 8.15 KB | 0644 |
|
opt-check.js | File | 1.21 KB | 0644 |
|
pack-dir.js | File | 1.03 KB | 0644 |
|
proclog.js | File | 340 B | 0644 |
|
read-json.js | File | 481 B | 0644 |
|