Skip to content

Format timestamp in log message context#6

Merged
ralflang merged 2 commits into
FRAMEWORK_6_0from
fix/timestamp-representation-in-SimpleLogger
May 27, 2026
Merged

Format timestamp in log message context#6
ralflang merged 2 commits into
FRAMEWORK_6_0from
fix/timestamp-representation-in-SimpleLogger

Conversation

@TDannhauer
Copy link
Copy Markdown
Contributor

Convert timestamp to ISO 8601 format if numeric.

Convert timestamp to ISO 8601 format if numeric.
@TDannhauer TDannhauer requested a review from ralflang May 25, 2026 13:01
Copy link
Copy Markdown
Member

@ralflang ralflang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need to review this one further as dicussed.

Only accept DateTimeInterface (i.e. Horde\Date\Date, DateTimeImmutable, DateTime) for the actual date field of a log.
Any other field value is a valid context value to be processed by individual formatters or logged in context-rich backends but will be discarded when defining the log's date.
@ralflang ralflang merged commit 47e81e1 into FRAMEWORK_6_0 May 27, 2026
1 check failed
@ralflang ralflang mentioned this pull request May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants