]> source.dussan.org Git - archiva.git/commitdiff
[MRM-1760] Multiple, incompatible, log name formats
authorOlivier Lamy <olamy@apache.org>
Thu, 2 May 2013 13:20:34 +0000 (13:20 +0000)
committerOlivier Lamy <olamy@apache.org>
Thu, 2 May 2013 13:20:34 +0000 (13:20 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1478363 13f79535-47bb-0310-9956-ffa450edef68

archiva-jetty/pom.xml
archiva-jetty/src/main/conf/jetty.xml
archiva-modules/archiva-web/archiva-webapp/src/main/resources/log4j2.xml

index bdf59a66979c68a96c21fb5e9ad560db241327c3..73fa9370d6226d54c7df4ae097599495de2cfe0c 100644 (file)
                     </property>
                     <property>
                       <name>wrapper.logfile</name>
-                      <value>%ARCHIVA_BASE%/logs/wrapper.YYYYMMDD.log</value>
+                      <value>%ARCHIVA_BASE%/logs/wrapper-YYYYMMDD.log</value>
                     </property>
                     <property>
                       <name>wrapper.logfile.rollmode</name>
index 39ca9f1ed9d0042242710d6a2f0535eed69397cb..2881f23f8d9ea01db7e54f02247489e1a3a20739 100644 (file)
     <Ref id="RequestLog">
       <Set name="requestLog">
         <New id="RequestLogImpl" class="org.eclipse.jetty.server.NCSARequestLog">
-          <Set name="filename"><SystemProperty name="jetty.logs" default="./logs"/>/yyyy_mm_dd.request.log</Set>
-          <Set name="filenameDateFormat">yyyy_MM_dd</Set>
+          <Set name="filename"><SystemProperty name="jetty.logs" default="./logs"/>/request-yyyy_mm_dd.log</Set>
+          <Set name="filenameDateFormat">yyyyMMdd</Set>
           <Set name="retainDays">90</Set>
           <Set name="append">true</Set>
           <Set name="extended">true</Set>
index 426407f0ee46f243426b792f6fb8f72201c6f9c4..32e1ed8f0ded85e8dd9dbf250c844e0fac64ae88 100644 (file)
@@ -28,7 +28,7 @@
   <appenders>
 
     <FastRollingFile name="rolling" fileName="${logsDirectory}/archiva.log"
-                 filePattern="${logsDirectory}/archiva-%d{MM-dd-yyyy}.log"
+                 filePattern="${logsDirectory}/archiva-%d{yyyyMMdd}.log"
                  immediateFlush="false" append="true">
       <PatternLayout>
         <pattern>%d [%t] %-5p %c %x - %m%n</pattern>
@@ -39,7 +39,7 @@
     </FastRollingFile>
 
     <FastRollingFile name="auditlog" fileName="${logsDirectory}/archiva-audit.log"
-                 filePattern="${logsDirectory}/archiva-audit-%d{MM-dd-yyyy}.log"
+                 filePattern="${logsDirectory}/archiva-audit-%d{yyyyMMdd}.log"
                  immediateFlush="false" append="true">
       <PatternLayout>
         <pattern>%d{yyyy-MM-dd HH:mm:ss} %m%n</pattern>
@@ -50,7 +50,7 @@
     </FastRollingFile>
 
     <FastRollingFile name="redbackAuditLog" fileName="${logsDirectory}/archiva-security-audit.log"
-                 filePattern="${logsDirectory}/archiva-security-audit.log-%d{MM-dd-yyyy}.log"
+                 filePattern="${logsDirectory}/archiva-security-audit.log-%d{yyyyMMdd}.log"
                  immediateFlush="false" append="true">
       <PatternLayout>
         <pattern>%d{yyyy-MM-dd HH:mm:ss} - %X{redback.currentUser} - %m%n</pattern>