Skip to content

Log deployment IDs and lifecycle event with every line#326

Open
mpdude wants to merge 1 commit intoaws:masterfrom
mpdude:event-logging
Open

Log deployment IDs and lifecycle event with every line#326
mpdude wants to merge 1 commit intoaws:masterfrom
mpdude:event-logging

Conversation

@mpdude
Copy link

@mpdude mpdude commented Jul 1, 2022

This PR amends the log format so that the deployment ID and the lifecycle event are added to every line.

This makes logfile aggregation/processing much easier, since it is no longer necessary to statefully follow log lines to be able to infer the lifecycle event.

Additionally, it is now possible to follow just the /opt/codedeploy-agent/deployment-root/deployment-logs/codedeploy-agent-deployments.log log and find all events in one place, while still being able to relate them to deployments and lifecycle phases for every single line.

@mpdude
Copy link
Author

mpdude commented Sep 25, 2025

@NsTremblay What do you think about this?

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.

1 participant