Wow, I wish I had that particular gift. My gift is making bugs magically appear at inopportune moments! ;-) Like this morning I had to deal with a double-panicked Mac that would only start via safe mode... Good thing I had my telekinesis in check; it might have ended up on the other side of a wall, in pieces!
I've done something similar in my apps as well, although they didn't capture console.log (the code just used a logger instance). Furthermore, if a critical error occurs while the app is in production, the app can send those errors via email to the administrative staff so they can figure out if they (or the end user) borked something or not. ;-) One does have to be careful in that case what one logs (and how much), but it makes debugging issues in production so much easier. That said, the output is a whole lot uglier (JSON.stringify, really) than the formatting you're doing in your code.
On Wednesday, July 27, 2016 at 5:55:05 PM UTC-5, Pete wrote:
Well, I have, I can do something similar to a Vulcan Mind Meld with my devices and my bugs magically disappear but I thought I'd do this for my human compatriots, especially knowing all their "shortcomings."