Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-10380

log4j template 4.3 : move param to the first line of appender

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.2.14, 4.3.1, 4.4.0
    • 4.3.0
    • None
    • None
    • 4.4 M1

      At this time in log4j*.xml there is

      <appender name="servlet" class="org.apache.log4j.rolling.RollingFileAppender">
              <rollingPolicy class="org.apache.log4j.rolling.TimeBasedRollingPolicy">
                <param name="FileNamePattern" value="${ametys.home.dir}/logs/ametys-cms-%d.log"/>
              </rollingPolicy>
              <layout class="org.apache.log4j.PatternLayout"> 
                  <param name="ConversionPattern" value="%d %-5p [%c] (%t;%X{requestURI}) %m%n"/> 
              </layout>
              <filter class="org.ametys.core.util.AmetysExceptionFilter"/>
              <param name="Encoding" value="UTF-8" />
          </appender>
      

      But the line

      <param name="Encoding" value="UTF-8" />

      should be in first position before rolling.

      Same for all files and also site

            raphael Raphaƫl Franchet
            fravetier Frederic Ravetier (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: