Skip to content

[MS25] Unified date formatting #1 #2079

@ppkarwasz

Description

@ppkarwasz

Date formatting in Log4j uses different formats:

While these formatters use similar patterns, the usage of both formatters causes code deduplication and performance issues.

For logging purposes a single formatter would be enough, which would:

  • separate the format specifiers into a "date" part and a "time" part,
  • format and cache the "date" part once a day,
  • format the "time" part using a highly optimized formatter.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions