Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-19989

logback date encoder pattern is incorretly using comma versus period

    Details

    • Bug Priority:
      Category 2
    • ACT Numbers:

      00972000

      Description

      Summary

      The logback.xml file in both activiti-admin and activiti-app are incorrectly using a comma versus a period in the encoder pattern.

      • WEB-INF/classes/logback.xml
         <encoder>
              <pattern>%d{hh:mm:ss,SSS} [%t] %-5p %c %X - %m%n</pattern>
            </encoder>
        

      As a result the interpretation of the timestamp is incorrect parsing SSS as timezone.

      "d{pattern, timezone}" 
      

      This is making the timestamp incorrect and confusing in logs.

      Actual Behavior

      • If time was "Thu Aug 30 14:04:37 EDT" the parse pattern is printing out as ex. "06:04:37"

      Expected Behavior

      • If time was "Thu Aug 30 14:04:37 EDT" the parse pattern should be printing out as ex. "14:04:37.593"

      Workaround

      • either use dot instead of comma
         <encoder>
              <pattern>%d{hh:mm:ss.SSS} [%t] %-5p %c %X - %m%n</pattern>
            </encoder>
        

      or put quotes around pattern

       <encoder>
            <pattern>%d{"hh:mm:ss,SSS"} [%t] %-5p %c %X - %m%n</pattern>
          </encoder>
      

      Additional Information

      Ref:

        Attachments

          Structure

            Activity

              People

              • Assignee:
                dgruber Doug Gruber
                Reporter:
                jsoria Jennie Soria
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Structure Helper Panel