> On Nov 1, 2023, at 3:33 PM, Piotr P. Karwasz <piotr.karw...@gmail.com> wrote:
> 
> Hi Volkan,
> 
> On Wed, 1 Nov 2023 at 12:07, Volkan Yazıcı <vol...@yazi.ci> wrote:
>> Curious: *In the context of logging, does `FastDateParser` need to be fast
>> while parsing?* We certainly need to *"format"* the instant fast. Though do
>> we really need to *"parse"* it fast too?
> 
> No we don't. In Commons Lang the parser and formatter  are bound
> together, that is why we have a parser.
> 
> Actually we don't need a fast formatter either. Except for the rolling
> file manager that can require a date from the past, the layouts format
> timestamps close to 'now'.
> 
> We can format all dates the same way `FixedDateFormat` does: we let
> any date formatter to format the date part once a day and we format
> the time part ourselves.

Are we doing this now? If not, why not? The only trick is to ensure the date 
gets formatted on or before the date rollover. 

One other thing though - don’t we allow different layouts to use different date 
formats? We would need to ensure every layout is doing this.

Ralph

Reply via email to