Format stacktraces in logs

Not sure if this is the best approach, but stack traces are pretty hard to read, and I've also seen others having issues with this. This is at least a suggestion to an approach. :-)