Hi Abhishek, These are currently private fields and not easily accessible. Can you explain your use case? Why do you need this?
Best regards, Remko On Thu, Jan 30, 2014 at 2:33 PM, ~Abhi$hek~ <boyobo...@gmail.com> wrote: > Hello Log4j 2 experts, > > > > I am in the process of migrating my application from log4j 1.2 to log4j 2.0 > > I have existing code: > > Enumeration appenders = logger.getAllAppenders(); > > . > > . > > . > > fileBackupIndex = rollingFileAppender.getMaxBackupIndex(); > > maxFileSize = rollingFileAppender.getMaximumFileSize(); > > > > 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 programmatically? > > Regards, > Abhishek >