I would like to save the output of the console.log() function as an object, or as a variable. I'm mainly interested in receiving object-results, as well as the line numbers.
The following is just to demonstrate, what i'm looking for:
var myobj = {"key":"value"}; // (<< in 'myjs.js, line 123)
var mylog = console.log( myobj );
// output mylog: {"key":"value"}, myjs.js:123
Thanks in advance for any help!