jproulx / node-console-enhance

Enhancements to console to emit more information (data, line, function, etc)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A custom console replacement for logging. Simply enable and use the console as you would normally, but now with additional details that can aid debugging.

To use:

var enhance = require('node-console-enhance');
enhance.enable('My custom script name');

To customize:

var enhance = require('node-console-enhance');
enhance.token('custom', 'This is my custom token value');
enhance.format('[{date}] - {custom} - {parameters}');
// I only want to see warnings and errors
enhance.enable('My custom script name', 'warn');

About

Enhancements to console to emit more information (data, line, function, etc)


Languages

Language:JavaScript 100.0%