title: How to format stacktrace in log4j2?
body: <p>By default log4j2 prints stacktrace on multiple lines, separated by <code>newline</code> characters. Something like:</p>
  
  <pre><code>java.lang.NullPointerException: error enovountered
      at ...
      at ...
      at ...
  </code></pre>
  
  <p>I want my stacktrace on a single line, something like, essentially using <code>|</code> as a delimiter rather than <code>\n</code></p>
  
  <pre><code>java.lang.NullPointerException: error enovountered at ... | at ... | at ...
  </code></pre>
  
  <p>How will I accomplish something like this in log4j2?</p>