Skip to content

Add timestamps to management, server and agent .err logs#12967

Open
dheeraj12347 wants to merge 1 commit intoapache:mainfrom
dheeraj12347:fix-12887-err-timestamps-clean
Open

Add timestamps to management, server and agent .err logs#12967
dheeraj12347 wants to merge 1 commit intoapache:mainfrom
dheeraj12347:fix-12887-err-timestamps-clean

Conversation

@dheeraj12347
Copy link
Copy Markdown
Contributor

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.

@dheeraj12347
Copy link
Copy Markdown
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

.err logs have no timestamp

1 participant