Add timestamps to management, server and agent .err logs#12896
Open
dheeraj12347 wants to merge 14 commits intoapache:mainfrom
Open
Add timestamps to management, server and agent .err logs#12896dheeraj12347 wants to merge 14 commits intoapache:mainfrom
dheeraj12347 wants to merge 14 commits intoapache:mainfrom
Conversation
…tatistics table in account_view for netstats (apache#12631)
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
…listing for cross-domain deployments (apache#12775)
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.
Management, server and agent .err files are fed from the Java process console/stderr by the systemd units.
Previously, the CONSOLE appender patterns in:
client/conf/log4j-cloud.xml.in
server/conf/log4j-cloud.xml.in
agent/conf/log4j-cloud.xml.in
did not always include a timestamp, so .err lines lacked timestamps.
This change updates those CONSOLE appenders to use the same timestamped pattern as the existing rolling file appenders by adding %d{DEFAULT} at the start of the layout pattern.
Hyper-V’s plugins/hypervisors/hyperv/conf/log4j-cloud.xml.in already had a timestamped console pattern and was left unchanged.
This ensures .err logs for management, server and agent now include timestamps on every line, addressing issue #12887.