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
Just use the C preprocesor, adds an extra build step to your code but then it allows stripping out your logging for production code.