title: JSONLayout RollingFileAppender Line Separation
body: <p>I am not sure what I am doing incorrectly in log4j2.xml but I am just trying to get JSON output with a line difference between each logs.</p>
  
  <p>I was getting:</p>
  
  <pre><code>{"loggerFqcn":"org.apache.logging.slf4j.Log4jLogger"},{"loggerFqcn":"org.apache.logging.slf4j.Log4jLogger"}
  </code></pre>
  
  <p>that is with <code>&lt;JSONLayout eventEol="true" compact="true" /&gt;</code></p>
  
  <p>So I tried <code>&lt;JSONLayout eventEol="true" compact="false" /&gt;</code> that gives:</p>
  
  <pre><code>{
  "loggerFqcn":"org.apache.logging.slf4j.Log4jLogger"
  }{
  "loggerFqcn":"org.apache.logging.slf4j.Log4jLogger"},
  </code></pre>
  
  <p>What I want is:</p>
  
  <pre><code>{
  "loggerFqcn":"org.apache.logging.slf4j.Log4jLogger"
  }
  {
  "loggerFqcn":"org.apache.logging.slf4j.Log4jLogger"
  },
  </code></pre>
  
  <p>I have also tried according to documentation at <a href="https://logging.apache.org/log4j/2.x/manual/layouts.html#JSONLayout" rel="nofollow noreferrer">https://logging.apache.org/log4j/2.x/manual/layouts.html#JSONLayout</a></p>
  
  <p><code>&lt;JSONLayout eventEol="true" compact="false" endOfLine="\n"/&gt;</code></p>
  
  <p>Can someone guide me as to what am i missing here please. Thank you.</p>
  
  <p>Log4j core and api versions are 2.0.2.</p>