If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

How to configure log4 for Custom authentication provider

Started by uyravikumar, 26 Jan 2009 11:54:57 AM

Previous topic - Next topic

uyravikumar

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.

platipuss

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>