[MNT-19989] logback date encoder pattern is incorretly using comma versus period Created: 06-Sep-18  Updated: 02-Dec-19

Status: Open
Project: Service Packs and Hot Fixes
Component/s: APS Administrator, APS Kickstart/Studio
Affects Version/s: Alfresco Process Services 1.9, 1.9.0.2
Fix Version/s: Alfresco Process Services .N

Type: Service Pack Request
Reporter: Jennie Soria [X] (Inactive) Assignee: Mark Howarth
Resolution: Unresolved Votes: 0
Labels: Atlanta
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

APS activiti-app, activiti-admin


Issue Links:
Shadow
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:



 Comments   
Comment by Mark Howarth [ 23-Aug-19 ]

Reassigning to Doug Gruber, new APS PM.

Comment by Mark Howarth [ 02-Dec-19 ]

Assigning to Mark Howarth as PM for APS.

Generated at Thu Jul 09 10:02:29 BST 2020 using JIRA 7.6.3#76005-sha1:8a4e38d34af948780dbf52044e7aafb13a7cae58.