[logback-dev] [JIRA] Updates for LOGBACK-1552: logging Date pattern '.'yyyy-MM-dd-a not working as expected

QOS.CH (JIRA) noreply-jira at qos.ch
Fri Feb 19 09:58:00 CET 2021


logback / LOGBACK-1552 [Open]
 logging Date pattern '.'yyyy-MM-dd-a not working as expected

==============================

Here's what changed in this issue in the last few minutes.
This issue has been created
This issue is now assigned to you.

View or comment on issue using this link
https://jira.qos.ch/browse/LOGBACK-1552

==============================
 Issue created
------------------------------

Akanksha Jain created this issue on 19/Feb/21 9:46 AM
Summary:               logging Date pattern '.'yyyy-MM-dd-a not working as expected
Issue Type:           Bug
Assignee:             Logback dev list
Created:              19/Feb/21 9:46 AM
Priority:             Major
Reporter:             Akanksha Jain
Description:
  Date Pattern  '.'yyyy-MM-dd-a (HALF_DAY) is not treated as Valid PeriodicityType[0]
  So RollingCalendar.computePeriodicityType() - return TOP_OF_DAY as periodicity.
  Which causes rollover at midnight instead of twice of the day (at midday and midnight)
   
  
  [0]: [https://github.com/qos-ch/logback/blob/bbc783e6d68482abe8e7dff0d06708175e971b91/logback-core/src/main/java/ch/qos/logback/core/rolling/helper/PeriodicityType.java#L22] 
  
  [1]: [https://github.com/qos-ch/logback/blob/bbc783e6d68482abe8e7dff0d06708175e971b91/logback-core/src/main/java/ch/qos/logback/core/rolling/helper/RollingCalendar.java#L52]


==============================
 This message was sent by Atlassian Jira (v8.8.0#808000-sha1:e2c7e59)



More information about the logback-dev mailing list