This is an automated email from the ASF dual-hosted git repository.

jleroux pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 8cd4527537 Fixed: Tomcat access_log has 2 dots (OFBIZ-13089)
8cd4527537 is described below

commit 8cd452753791649a17d774ad935153ac78744d46
Author: Jacques Le Roux <jacques.le.r...@les7arts.com>
AuthorDate: Mon May 13 11:20:08 2024 +0200

    Fixed: Tomcat access_log has 2 dots (OFBIZ-13089)
    
    Between Tomcat 7 and Tomcat 8 the access_log default value of fileDateFormat
    has changed:
    
https://tomcat.apache.org/tomcat-7.0-doc/config/valve.html#Access_Log_Valve/Attributes
    
https://tomcat.apache.org/tomcat-8.0-doc/config/valve.html#Access_Log_Valve/Attributes
    
    I did not find any notice about that. We did not change OFBiz 
access-log-prefix value.
    Not a big deal but better keep a simple file format with only one dot.
    
    As we use the defaul format value we could also remove this OOTB value.
    I believe it's better to keep it in order to allow users to decide about it.
    Without this OOTB value they may miss this opportunity.
---
 framework/catalina/ofbiz-component.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/framework/catalina/ofbiz-component.xml 
b/framework/catalina/ofbiz-component.xml
index e776745b19..8c3568bfbf 100644
--- a/framework/catalina/ofbiz-component.xml
+++ b/framework/catalina/ofbiz-component.xml
@@ -41,7 +41,7 @@ under the License.
                 <property-value>%h %l %u %t "%r" %s %b "%{Referer}i" 
"%{User-Agent}i"</property-value>
             </property>
             <property name="access-log-rotate" value="true"/>
-            <property name="access-log-prefix" value="access_log."/>
+            <property name="access-log-prefix" value="access_log"/>
             <property name="access-log-dir" value="runtime/logs"/>
             <property name="access-log-maxDays" value="30"/>
             <!-- uncomment for cluster support
@@ -192,7 +192,7 @@ under the License.
                 <property-value>%h %l %u %t "%r" %s %b "%{Referer}i" 
"%{User-Agent}i"</property-value>
             </property>
             <property name="access-log-rotate" value="true"/>
-            <property name="access-log-prefix" value="access_log."/>
+            <property name="access-log-prefix" value="access_log"/>
             <property name="access-log-dir" value="runtime/logs"/>
             <property name="access-log-maxDays" value="30"/>
             <property name="enable-request-dump" value="false"/>

Reply via email to