Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

vivaxy/log-util

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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;