Add timestamps to management, server and agent .err logs#12967
Open
dheeraj12347 wants to merge 1 commit intoapache:mainfrom
Open
Add timestamps to management, server and agent .err logs#12967dheeraj12347 wants to merge 1 commit intoapache:mainfrom
dheeraj12347 wants to merge 1 commit intoapache:mainfrom
Conversation
Contributor
Author
|
This is a replacement for PR #12896 with the same .err timestamp change, but scoped to only the three log4j config files and based on the latest main. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change updates the CONSOLE appender PatternLayout in:
client/conf/log4j-cloud.xml.in
server/conf/log4j-cloud.xml.in
agent/conf/log4j-cloud.xml.in
The console patterns now include %d{DEFAULT} at the beginning, matching the existing rolling file appender patterns. This ensures .err log lines (fed from console/stderr by the systemd units) include timestamps, which improves troubleshooting and aligns .err with .log, as requested in issue #12887.
Hyper-V’s log4j-cloud.xml.in already uses a timestamped console pattern and is unchanged.
Fixes #12887.