Hi,

Suppose i have configured the log4j.xml in following :

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd" >
<log4j:configuration>
<appender name="stdout" class="com.mycompy.CustomAppender">
<param name="MaxFileSize" value="10MB" />
<param name="MaxBackupIndex" value="50" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{ABSOLUTE}
%5p %c{1}:%L - %m%n"/>
</layout>
</appender>
<root>
<priority value="debug"></priority>
<appender-ref ref="stdout"/>
</root>
</log4j:configuration>


Here i have configured the "CustomAppender" which extend the RoolingFileAppender for doing some custom implementation.

As we can access variable like value for MaxBackupIndex in CustomAppender.java.

Now i want to access the log level in this CustomAppender.java file that we set in the log4j.xml file.

Please suggest me how we can achieve this?