GitHub user ppkarwasz added a comment to the discussion: Getting current 
date-time format (or default format)

If you chose the `yyyy-MM-dd HH:mm:ss,SSS` format because it was one of the few 
formats optimized for low garbage generation by `FixedDateFormat`, it's worth 
noting that this limitation no longer applies as of Log4j 2.25.0.

We deprecated `FixedDateFormat` primarily because #3121 introduced a new, more 
consistent timestamp formatting subsystem. This new implementation is also 
optimized for performance and low garbage generation, but with the added 
flexibility of supporting **any** `DateTimeFormatter` pattern—including formats 
like the one used in the `Last-Modified` HTTP header.


GitHub link: 
https://github.com/apache/logging-log4j2/discussions/3788#discussioncomment-13601787

----
This is an automatically sent email for dev@logging.apache.org.
To unsubscribe, please send an email to: dev-unsubscr...@logging.apache.org

Reply via email to