nlogger icon indicating copy to clipboard operation
nlogger copied to clipboard

Logging lib for Node.js that prints also module name and line number

Results 7 nlogger issues
Sort by recently updated
recently updated
newest added

To reproduce, create this test script `test.js` ``` javascript var logger = require('nlogger').logger(module); ``` When you run `node test.js` it works fine. But if you require the module from REPL...

Fixes #16 Let me know if this works for you!

Since `util.puts` was deprecated in Node 0.11 every call also outputs: ``` util.puts: Use console.log instead ``` Using `console.log` is the recommended way to output to `stdout`.

Line number extraction did not work correctly on Windows because the file path also contains a colon.

Example in examples/my-modules/runtime-config.js

Hello, I've just corrected a bug on the line number routine, when running on windows: the drive letter got in the way, and the routine returned the file path instead...

Hi Firstly, thanks for the small and useful logging library. I don't want to confront users with an `nlogger.json` file that requires knowledge of the module names. Also the current...