0.1.8 • Published 9 years ago

verbose-console-log v0.1.8

Weekly downloads
12
License
MIT
Repository
github
Last release
9 years ago

verbose-console-log

Standard node.js console.log not shows line numbers, verbose-console-log do.

Installation

npm install verbose-console-log --save

Usage

var logger = require("verbose-console-log");

logger.log("foo", "bar");
logger.warn("baz", "bat");

try {
    something.wrong();
} catch(err) {
    logger.error("asdf", "qwer");
}

Output:

~/src/index.js:3:8 foo bar
~/src/index.js:4:8 baz bat
~/src/index.js:9:12 asdf qwer

Capabilities

You can use this with source maps, if there is appropriate *.map file next to your file, for example:

/src
 | index.js
 | index.js.map

Testing

For testing, you must install mocha and run gulp and mocha

cd verbose-console-log
npm i -g mocha
gulp
mocha
0.1.8

9 years ago

0.1.7

9 years ago

0.1.6

9 years ago

0.1.5

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.1

9 years ago