title: Logstash-logger: Rails stacktrace splitting into multiple json lines
body: <p>I'm using logstash-logger to log my rails logs. It works for most cases, but when something goes wrong (ie; I get an error) Rails produces a stack trace. But the logger logs it into multiple Json lines. How can I solve this?</p>
  
  <p>I'm attaching a small part of the log here</p>
  
  <blockquote>
    <p>{"message":"Started GET \"/\" ... }</p>
    
    <p>{"message":"  ",  ... }</p>
    
    <p>{"message":"ActionController::RoutingError (No route matches [GET] \"/\"):" ... }</p>
    
    <p>{"message":"vendor/bundle/ruby/2 ... }</p>
  </blockquote>
  
  <p>This is single stack trace, but the logger is logging it as multiple logs.</p>
  
  <p>This is my logstash-logger configuration</p>
  
  <pre><code>logstash_logger = LogStashLogger.new(
    type: :file,
    path: "log/#{Rails.env}.log",
    sync: true
  )
  if "#{Rails.env}" != "development"
    config.logger = logstash_logger
  end
  </code></pre>