aws / aws-codedeploy-agent

Host Agent for AWS CodeDeploy
https://aws.amazon.com/codedeploy
Apache License 2.0
328 stars 188 forks source link

Log deployment IDs and lifecycle event with every line #326

Open mpdude opened 2 years ago

mpdude commented 2 years ago

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.