1.0.2 • Published 7 months ago

@whr2349/log v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
7 months ago

index

TODO: description

Usage

const log = require('@whr2349/log');

// 日志默认输出级别,判断debug模式,默认info
log.level = process.env.WHR_CLI_LOG_LEVEL || 'info'
// 修改前缀
log.heading = 'whr-cli'
// 添加自定义命令
log.addLevel('success', 2000, {fg: 'green', bold: true})

// TODO: DEMONSTRATE API