title: How to remove all line breaks from a Node JS application console log call
body: <p>I am working in a NodeJS app built using Express.</p>
  <p>Logs from several files, and from libraries log fine, but many of them, including from libraries I have no control, have some sort of line break in them.</p>
  <p>My goal is to have a single line of logging without the line breaks.</p>
  <p>for example:</p>
  <pre><code>var a = 'var a';
  var b = 'var b';
  var c = 'var c';
  
  console.log({ a, b, c });
  </code></pre>
  <p>Instead of seeing those in separate lines I would like to have them in a single line.</p>
  <p>Is it possible to somehow intercept globally the call, and remove all line breaks?</p>
  <p>Could I do that in logstash, or some other facility?</p>