title: Logback JsonLayout printing all logs on the same line
body: <p>I am using JsonLayout with Spring Boot to log messages in JSON format. I only want the log messages to be logged to the console and not to a log file.</p>
  
  <p>I notice that the JSON logs are logged continuously on the same line. On production this would be alright, since we would be shipping the logs to a log aggregator. But this becomes a bit difficult to analyze on local development. </p>
  
  <p><strong>Logs</strong>  </p>
  
  <pre><code>{"timestamp":"2016-11-13 23:06:17.727","level":"INFO","thread":"qtp745835029-19","logger":"com.test.controller.TestController","message":"Info log:: printme 1","context":"default"}{"timestamp":"2016-11-13 23:06:17.727","level":"DEBUG","thread":"qtp745835029-19","logger":"com.test.controller.TestController","message":"Debug log:: printme","context":"default"}{"timestamp":"2016-11-13 23:06:17.727","level":"WARN","thread":"qtp745835029-19","logger":"com.test.controller.TestController","message":"Warn log:: printme","context":"default"}{"timestamp":"2016-11-13 23:06:17.727","level":"ERROR","thread":"qtp745835029-19","logger":"com.test.controller.TestController","message":"Error log:: printme","context":"default"}
  </code></pre>
  
  <p>Below is the logback configuration<br>
  <strong>logback-spring.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;configuration&gt;
      &lt;include resource="org/springframework/boot/logging/logback/base.xml" /&gt;
      &lt;appender name="consoleAppender" class="ch.qos.logback.core.ConsoleAppender"&gt;
          &lt;layout class="ch.qos.logback.contrib.json.classic.JsonLayout"&gt;
              &lt;jsonFormatter class="ch.qos.logback.contrib.jackson.JacksonJsonFormatter"&gt;
                  &lt;prettyPrint&gt;false&lt;/prettyPrint&gt;
              &lt;/jsonFormatter&gt;
              &lt;timestampFormat&gt;yyyy-MM-dd' 'HH:mm:ss.SSS&lt;/timestampFormat&gt;
          &lt;/layout&gt;
      &lt;/appender&gt;
      &lt;logger name="jsonLogger" additivity="false" level="DEBUG"&gt;
          &lt;appender-ref ref="consoleAppender"/&gt;
      &lt;/logger&gt;
      &lt;root level="INFO"&gt;
          &lt;appender-ref ref="consoleAppender"/&gt;
      &lt;/root&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>Am I missing something in the configuration so that they are logged on separate lines on the console.</p>
  
  <p>Thanks for any help on this.</p>