How to get current file name, function name and line number?
I want to use it for logging/debugging purpose, equivalent to __FILE__, __LINE__
__FILE__
__LINE__
Well, I wanted to use the file name as the tag for the logger so the most straight forward and what I wanted is this:
__filename.substring(__dirname.length + 1, __filename.lastIndexOf("."))