title: Migrating from log4j 1.2 to log4j 2 - how to get list of all appenders and rolling file strategy
body: <p>I am in the process of migrating my application from log4j 1.2 to log4j 2.0</p>
  
  <p>I have existing code:</p>
  
  <pre><code>Enumeration appenders = logger.getAllAppenders();
  .
  .
  .
  fileBackupIndex = rollingFileAppender.getMaxBackupIndex();
  </code></pre>
  
  <p>In log4j 2.0 I could not find way to replace above java code. How to get list of all appenders and how to get the max value defined for RollingFile appender programatically?</p>