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

Reply via email to