Hi,
How to configure log4j.properties file for custom authentication provider.
I tried but it is saying log4j warrnings and not log4j is not working for custom authentication provider.
Any help is appriciated.
Thanks in advance
Ravi.
I would check your logger definitions and the appender names to make sure you aren't using something common that is likely used else where.
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration>
<appender name="rollingCustAuth" class="org.apache.log4j.RollingFileAppender">
<param name="File" value="../logs/custAuth.log"/>
<param name="Append" value="true"/>
<param name="DatePattern" value="yyyy-MM-dd"/>
<param name="MaxFileSize" value="100MB"/>
<param name="MaxBackupIndex" value="10"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d %4r %-5p %c - %m%n"/>
</layout>
</appender>
<logger name="calss.path.to.base.of.auth">
<level value="debug" />
<appender-ref ref="rollingCustAuth"/>
</logger>
</log4j:configuration>