log-util
v2.3.0
Published
node log utility
Downloads
5,369
Readme
log-util
Node.js log utility for terminal output.
usage
yarn add log-util
var log = require('log-util');
log.debug('debug', 0);
log.info('info', 1);
log.success('success', 2);
log.warn('warn', 3);
log.error('error', 4);
api
log.setLevel(level: string) => log
level
is level id or level string
new log.Log(0) => log
log levels
log.levels.debug === 0;
log.levels.info === 1;
log.levels.success === 2;
log.levels.warn === 3;
log.levels.error === 4;