I tend to like explicit method names ... this can lead to long names. I do not really care since I use an editor with autocompletion ![]()
I'll look into adding that, even though, with the fluent method to inc/dec indent, you still get it under one line.
I can add aliases for that.
I don't get this one ![]()
Filenaming is set from the "log id" when initializing the logger or configuration or target.
That one is easy ![]()
this.GetCaller = function() {
try { return arguments.callee.caller.caller.toString().match(/function\s+([^\s\(]+)/)[1]; }
catch (e) { return "<<Unknown caller function>>"; }
};
... well kinda ...
It took a while to set up, lots of trial and errors; but now it seems to work well. I can not remember somewhere it failed.
It's something I really wanted as it really helps narrow down issue without having to look for the log pattern which can include variable parts, not to mention some patterns will occur in several functions in the same code.