I\'m working on enhancing logging in some node.js applications. In the past have used C++\'s __ file__ and __ line __ preprocessor macros to help us track down issues when
see the global object:
__filename
for the lineNumber see this post: javascript node.js getting line number in try catch?