archiva-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Chaffee" <>
Subject RE: archiva-1.0.2 eta?
Date Wed, 27 Feb 2008 08:36:04 GMT
Thanks Joakim.  I already found it changed it locally.  I also modified
the logging for the wrapper.conf.  

I might suggest changing the default that ships OR at least providing
some good documentation around this issue and how to configure the
logging in both log4j.xml and the wrapper.conf.  

-----Original Message-----
From: Joakim Erdfelt [] 
Sent: Tuesday, February 26, 2008 10:50 PM
Subject: Re: archiva-1.0.2 eta?

Here's a changed log4j.xml file for you.
It changes from a DailyRollingFileAppender to a RollingFileAppender with

a max of Six 500MB files ever.
It also squelches the output to error / fatal messages only in the main
It leaves the audit log alone.

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

<log4j:configuration xmlns:log4j="">

  <appender name="rolling" class="org.apache.log4j.RollingFileAppender">
    <param name="file" value="${appserver.base}/logs/archiva.log" />
    <param name="append" value="true" />
    <param name="maxFileSize" value="500MB" />
    <param name="maxBackupIndex" value="6" />
    <layout class="org.apache.log4j.PatternLayout">
      <param name="ConversionPattern" value="%-4r [%t] %-5p %c %x -

  <appender name="auditlog" 
    <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}

  <appender name="console" class="org.apache.log4j.ConsoleAppender">
    <param name="Target" value="System.out"/>
    <layout class="org.apache.log4j.PatternLayout">
      <param name="ConversionPattern" value="%d [%t] %-5p %c %x -

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

    <priority value ="error" />
    <appender-ref ref="console" />
    <appender-ref ref="rolling" />


Brett Porter wrote:
> On 27/02/2008, Jason Chaffee <> wrote:
>> I have not.  Is that configured in the plexus.xml?
> No, log4j.xml - but it seems like the problem is just too many
> exception messages? Is that what is filling the log so fast?
> - Brett

View raw message