title: How to generate 5(more than 2) log files using 5 log4j properties in java
body: <p>How to generate 5(more than 2) log files using 5 log4j properties in java, I done with 2 files it's working fine but I need to create more than 2 files but it's not creating more than 2 files.</p>
  
  <p>Thanks.</p>
  
  <p>configuration:</p>
  
  <pre><code>    # This is first log file
  
  log4j.rootLogger=INFO, file
  
  log4j.appender.file=org.apache.log4j.RollingFileAppender
  log4j.appender.file.File=C://First_logger.out
  log4j.appender.file.layout=org.apache.log4j.PatternLayout
  log4j.appender.file.layout.ConversionPattern=[ %p ] %d{dd MMM yyyy HH:mm:ss,SSS} %c:%L - %m%n%n
  
  # This is second log file
  
  log4j.rootLogger=INFO, SecondLog
  
  log4j.appender.SecondLog=org.apache.log4j.RollingFileAppender
  log4j.appender.SecondLog.File=C://second-report.out
  log4j.appender.SecondLog.layout=org.apache.log4j.PatternLayout
  log4j.appender.SecondLog.layout.ConversionPattern=[ %p ] %d{dd MMM yyyy HH:mm:ss,SSS} %c:%L - %m%n%n
  
  log4j.category.SecondLogger=DEBUG, SecondLog
  log4j.additivity.SecondLogger=false
  
  # This is Third log File
  
  
  log4j.rootLogger=INFO, ThirdLog
  
  log4j.appender.ThirdLog=org.apache.log4j.RollingFileAppender
  log4j.appender.ThirdLog.File=C://third-report.out
  log4j.appender.ThirdLog.layout=org.apache.log4j.PatternLayout
  log4j.appender.ThirdLog.layout.ConversionPattern=[ %p ] %d{dd MMM yyyy HH:mm:ss,SSS} %c:%L - %m%n%n
  
  log4j.category.ThirdLogger=DEBUG, ThirdLog
  log4j.additivity.ThirdLogger=false
  </code></pre>