How to use the level function from npmlog
Find comprehensive JavaScript npmlog.level code examples handpicked from public code repositorys.
GitHub: Mondego/pyreco

182 183 184 185 186 187 188 189 190 191
// level -+ | | | // v v v v log.info('fyi', 'I have a kitty cat: %j', myKittyCat) ``` ## log.level * {String} The level to display logs at. Any logs at or above this level will be
+ 9 other calls in file
GitHub: tessel/t2-cli

180 181 182 183 184 185 186 187 188 189
// Set a logging level level(level) { if (level) { npmlog.level = level; } else { return npmlog.level; } }, // Enable or disable ALL logging. disable() {
+ 5 other calls in file
GitHub: evanlucas/xnpmlog

9 10 11 12 13 14 15 16 17 18
log.addLevel('error', 5000, { fg: 'brightRed' }, 'ERR!') var defaults = { prefixStyle: log.prefixStyle , headingStyle: log.headingStyle , loglevel: log.level , stream: process.stderr , timestamp: true , heading: '' }
npmlog.verbose is the most popular function in npmlog (7425 examples)