I wanted to log the stack trace for certain function calls in my app. I like the way console.trace() present the data, but it always spits it out to console expanded. if you have dozens of logs this gets messy very quickly.
Some people suggested using log Error().stack, others console.error(), others Error.captureStackTrace(). But all of these had things I did not like. console.error clutters the console and makes it hard to see real errors. the others did not print out as nice or useable stacks.
There should be a way to simply get console.trace() to default to collapsed.