0.1.0 • Published 10 months ago

@gabrielef/shut-up v0.1.0

Weekly downloads
-
License
GPL-3.0-or-later
Repository
github
Last release
10 months ago

Shut-Up

This tiny script let you choose logging levels using the standard console object.

Getting Started

Installing

$ npm i @gabrielef/shut-up

Usage

Configure the logging level using the env varibale process.env.SHUT_UP_LOG_LEVEL then require the script.

require('@gabrielef/shut-up');

or

process.env['SHUT_UP_LOG_LEVEL'] = 'trace';

require('@gabrielef/shut-up');

Available levels are: trace, debug, info, log, warn, error. Default is error.

The below table shows the output for each level.

errorwarnloginfodebugtrace
console.errorYYYYYY
console.warnNYYYYY
console.logNNYYYY
console.infoNNNYYY
console.debugNNNNYY
console.tableNNNNYY
console.timeNNNNYY
console.timeLogNNNNYY
console.timeEndNNNNYY
console.traceNNNNNY

License

This project is licensed under the GPU GPL 3.0 License - see the LICENSE.md file for details

0.1.0

10 months ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago