title: Log4j2 json configuration doesn't write to file
body: <p>I have this <code>log4j2.json</code> file under resources dir</p>
  
  <pre><code>{
      "configuration": {
          "status": "TRACE",
          "name": "App",
          "monitorInterval": "300",
          "appenders": {
              "appender": [
                  {
                      "type": "Console",
                      "name": "STDOUT",
                      "PatternLayout": {
                          "pattern": "%m%n"
                      }
                  },
                  {
                      "type": "RollingFile",
                      "name": "RollingFile",
                      "PatternLayout": {
                          "pattern": "%m%n"
                      },
                      "filename": "console.log",
                      "filePattern": "$${date:yyyy-MM}/console-%d{MM-dd-yyyy}-%i.log",
                      "TimeBasedTriggeringPolicy": {
                          "interval": 24,
                          "modulate": true
                      }
                  },
                  {
                      "type": "RollingFile",
                      "name": "text-roll",
                      "PatternLayout": {
                          "pattern": "%d %p %c{1.} [%t] %m %ex%n"
                      },
                      "filename": "info.log",
                      "filePattern": "$${date:yyyy-MM}/info-%d{MM-dd-yyyy}-%i.log",
                      "TimeBasedTriggeringPolicy": {
                          "interval": 24,
                          "modulate": true
                      }
                  },
                  {
                      "type": "RollingFile",
                      "name": "json-roll",
                      "JsonLayout": {
                          "complete": true,
                          "compact": true,
                          "eventEol": true
                      },
                      "filename": "json.log",
                      "filePattern": "$${date:yyyy-MM}/json-%d{MM-dd-yyyy}-%i.log",
                      "TimeBasedTriggeringPolicy": {
                          "interval": 24,
                          "modulate": true
                      }
                  }
              ]
          },
          "loggers": {
              "logger": [
                  {
                      "name":"Console Root",
                      "level": "debug",
                      "AppenderRef": {
                          "ref": "STDOUT"
                      }
                  },
                  {
                      "name":"Console Output",
                      "level": "trace",
                      "AppenderRef": {
                          "ref": "RollingFile"
                      }
                  },
                  {
                      "name":"Info",
                      "level": "info",
                      "AppenderRef": {
                          "ref": "text-roll"
                      }
                  },
                  {
                      "name":"Json",
                      "level": "error",
                      "AppenderRef": {
                          "ref": "json-roll"
                      }
                  }
              ],
              "root": {
                  "AppenderRef": {
                      "ref": "STDOUT"
                  }
              }
          }
      }
  }
  </code></pre>
  
  <p>While it does create those file but never writes to those anything. 
  In the console.log, info.log is empty. But json.log has this content:</p>
  
  <pre><code>[
  
  ]
  
  ]
  
  ]
  
  ]
  
  ]
  
  ]
  </code></pre>
  
  <p>This is the console after starting the server for the log4j initialization:
  <a href="https://gist.github.com/shadow-fox/4c5af53db5c1a2a7c8a0" rel="nofollow">Gist of the console output</a></p>