<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">

<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">

  <appender name="rolling" class="org.apache.log4j.DailyRollingFileAppender">
    <param name="file" value="${appserver.base}/logs/archiva.log" />
    <param name="append" value="true" />
    <param name="datePattern" value="'.'yyyy-MM-dd" />
    <layout class="org.apache.log4j.PatternLayout">
      <param name="ConversionPattern" value="%d [%t] %-5p %c %x - %m%n"/>
    </layout>
  </appender>
  
  <appender name="auditlog" class="org.apache.log4j.DailyRollingFileAppender">
    <param name="file" value="${appserver.base}/logs/audit.log" />
    <param name="append" value="true" />
    <param name="datePattern" value="'.'yyyy-MM-dd" />
    <layout class="org.apache.log4j.PatternLayout">
      <param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss} %m%n"/>
    </layout>
  </appender>

  <!-- Help identify bugs during testing -->
  <logger name="org.apache.maven.archiva">
    <level value="info"/>
    <appender-ref ref="rolling" />
  </logger>
  
  <logger name="org.apache.maven.archiva.repository.scanner">
    <level value="info" />
    <appender-ref ref="rolling" />
  </logger>

  <logger name="org.apache.archiva.AuditLog">
    <level value="info" />
    <appender-ref ref="auditlog" />
  </logger>
  
  <logger name="org.codehaus.plexus.redback">
    <level value="info"/>
    <appender-ref ref="rolling" />
  </logger>

  <!-- squelch noisy objects (for now) -->
  <logger name="org.apache.commons">
    <level value="warn"/>
    <appender-ref ref="rolling" />
  </logger>

  <logger name="net.sf.ehcache">
    <level value="warn"/>
    <appender-ref ref="rolling" />
  </logger>

  <logger name="org.codehaus.plexus.mailsender.MailSender">
    <level value="info"/>
    <appender-ref ref="rolling" />
  </logger>

  <logger name="org.codehaus.plexus.velocity">
    <level value="error"/>
    <appender-ref ref="rolling" />
  </logger>

  <logger name="org.quartz">
    <level value="info"/>
    <appender-ref ref="rolling" />
  </logger>

  <logger name="org.apache.jasper">
    <level value="info"/>
    <appender-ref ref="rolling" />
  </logger>

  <logger name="com.opensymphony.xwork2">
    <level value="info"/>
    <appender-ref ref="rolling" />
  </logger>

  <logger name="org.apache.struts2">
    <level value="info"/>
    <appender-ref ref="rolling" />
  </logger>

  <logger name="org.codehaus.plexus.PlexusContainer">
    <level value="info"/>
    <appender-ref ref="rolling" />
  </logger>

  <logger name="JPOX">
    <level value="warn"/>
    <appender-ref ref="rolling" />
  </logger>

  <logger name="JPOX.MetaData">
    <level value="error"/>
    <appender-ref ref="rolling" />
  </logger>

  <logger name="JPOX.RDBMS.SQL">
    <level value="error"/>
    <appender-ref ref="rolling" />
  </logger>

  <logger name="SQL">
    <level value="error"/>
    <appender-ref ref="rolling" />
  </logger>

  <logger name="freemarker">
    <level value="warn"/>
    <appender-ref ref="rolling" />
  </logger>

  <logger name="org.codehaus.plexus.component.manager.ClassicSingletonComponentManager">
    <level value="error"/>
    <appender-ref ref="rolling" />
  </logger>

  <root>
    <priority value ="info" />
  </root>

</log4j:configuration>
