1.0.1 • Published 8 years ago

log-easily v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
8 years ago

Log Easily

Log Easily Dependency badge

A small and simple colored logging tool.

GITHUB: https://github.com/anonmily/log-easily

NPM: https://www.npmjs.com/package/log-easily

Installation - Node

To install as a Node package, simply install via npm:

npm install log-easily

Then, you can require and start using the package as you wish:

var log = require('log-easily');
log.info('this is an informational message');	// grey
log.warning('I'm warning you');			// yellow
log.success('This was a success');		// green
log.error('Something went horribly wrong');	// red

Usage

Logging depends on two environmental variables, SHOW_DEBUG and SHOW_ERRORS

VersionNotes
InfoInformational, grey. Visible when SHOW_DEBUG=true
WarningWarning, yellow. Visible when SHOW_DEBUG=true
SuccessSuccess, green. Visible when SHOW_DEBUG=truenpm
ErrorError, red. Visible when SHOW_DEBUG=true and SHOW_ERRORS=true