I'm researching various packages in Nodejs and cannot find that would suit my needs. I would like to output the current line number, function name and src file to log, similar to how Bunyan logger does.
I looked into packages such as 'caller-id' but I cannot use it as it does not support 'strict' mode.
Other packages, such as 'capture-stack-trace' only return the file name without the line number & function name.
Is there a package that I'm missing and can suit my need? Or is there an elegant way to generate this info in code?
Thanks in advance.