npm

Need private packages and team management tools?Check out npm Orgs. »

log-util

2.3.0 • Public • Published

log-util

NPM Version NPM Downloads MIT License

NPM

NPM

Node.js log utility for terminal output.

log-util

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;

Keywords

install

npm i log-util

Downloadsweekly downloads

442

version

2.3.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability