Skip to content

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

Open
dheeraj12347 wants to merge 14 commits intoapache:mainfrom
dheeraj12347:fix-err-timestamps
Open

Add timestamps to management, server and agent .err logs#12896
dheeraj12347 wants to merge 14 commits intoapache:mainfrom
dheeraj12347:fix-err-timestamps

Conversation

@dheeraj12347
Copy link

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.

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.

7 participants