ppkarwasz commented on PR #3789:
URL: https://github.com/apache/logging-log4j2/pull/3789#issuecomment-3053765302

   > In its current state, deprecated formatters are an island – no 
programmatic connections from anywhere. We can safely delete them, yet keep the 
legacy formatters configuration knob functional.
   
   We can’t remove `FixedDateFormat`, since it’s the only formatter that 
understands the `nnnnnn` and `nnnnnnnnn` specifiers — but I see your point.
   
   In commit 9657563b9ddbd88d985645fe082ccfe0f4bbd20a, I copied the custom 
`FixedDateFormat` patterns into `NamedInstantPattern` and exposed them via a 
package-private method.
   
   `FixedDateFormat` originally supported two types of input: custom pattern 
strings and enum constant names. However, I couldn't reuse the enum constants 
because `InstantPatternLegacyPattern` requires a DTF-style pattern to implement 
`getPrecision()`.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to