I need to reformat the console output from HAPI to spit out exceptions with the stack trace in a single line. Everything I come across looks like it's all about sending different info to the client, but I need to reformat the output going to stdout when an exception occurs.
I have tried adding a request-error handler and writing to console.log, and I see my formatted response, but the multi-line exception output still follows immediately afterward.
How do I format exception output?