Skip to content

Conversation

Fire-Dragon-DoL
Copy link

@Fire-Dragon-DoL Fire-Dragon-DoL commented Aug 18, 2025

Issue # (if available)

N/A

Changelog

Pull requests will not be accepted without a description of this change under the [unreleased] section
in the file CHANGELOG.

Description of changes

This PR moves the timestamp, level, level_index and message to the beginning of the JSON object.
This was a request by our DevOps team so that in case something is wrong with the JSON output and something is being "mangled" at the end of the log line, it is possible to extract timestamp, level and message from the information using regex or in general, simple tools.

This change shouldn't break anything since order of JSON shouldn't matter for any programmatic tools, but it does change for humans.

Would you be open to this kind of change?

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@Fire-Dragon-DoL Fire-Dragon-DoL force-pushed the francesco/timestamp-level-message-first branch from af9b575 to f116a6d Compare August 18, 2025 20:53
Copy link

@imajes imajes left a comment

Choose a reason for hiding this comment

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

makes sense to me.

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