title: How to use multiple appenders of same type with one logger using properties file?
body: <p>I have what should be a simple question but I can't figure it out. What is the correct syntax to use multiple appenders of the same type (RollingFile) with a single logger in Log4j2 properties file format?</p>
  
  <p>For background, I am using Karaf 4.2.7 which uses pax logging. My logging config file is in the properties format.</p>
  
  <pre><code>log4j2.appender.fileapp1.type = RollingRandomAccessFile
  log4j2.appender.fileapp1.name = FileApp1
  ...
  
  log4j2.appender.fileapp2.type = RollingRandomAccessFile
  log4j2.appender.fileapp2.name = FileApp2
  ...
  
  log4j2.logger.myloggername.name = com.acme
  log4j2.logger.myloggername.appenderRef.RollingFile.ref = FileApp1, FileApp2
  </code></pre>
  
  <p>Putting both appenders on that last line separated by a comma does not work. It works if I have only one appender or the other. I also tried </p>
  
  <pre><code>log4j2.logger.myloggername.appenderRef.RollingFile.ref = [FileApp1, FileApp2]
  
  log4j2.logger.myloggername.appenderRef.RollingFile.ref = {FileApp1, FileApp2}
  
  log4j2.logger.myloggername.appenderRef.RollingFile.ref = [{FileApp1}, {FileApp2}]
  </code></pre>
  
  <p>None of those works. I can't seem to find any examples online of how to do this.</p>