I found this question which is "close" to what I'm looking for:
How to get result of console.trace() as string in javascript with chrome or firefox?
However, is there a way to actually replace which JS file (and line number) the log entry originates from?
I'm funneling all my debug traces through another method, so no matter what I log/trace, it always shows up as the same file:line#
(and once clicked on, there's no way to traverse the stack / code like you can during a live debug session).
I could try to simply log the stack Error.captureStackTrace(obj, trace);
immediately after the given object (since concatenating them in the same trace would treat them as Strings, instead of clickable log entries), but I'm hoping there's a way to hijack Chrome's console a bit :)