On March 25, on Github, in the repositories of the LearnBoost company, widely known in the Node.js community, thanks to the Socket.io, mongoose, cluster projects, a small
console-trace module appeared. This is a small but useful addition to the console.log () function that was previously available only in browser consoles — displaying the file name and line number from which console.log () was called.
Using the module is very simple:
npm install console-trace
and
require ("console-trace"); console.t.log("Hello!");