Is it possible too Switch off or change the log level for CodeDeploy Logs?

0

When I run a CodeDeploy deployment there is a script called "scripts.log" that is added to the code agent output on the target server that contains logs related to the lifecycle hook scripts. Is it possible to either change the log level on these or switch them off?

thanks

已提問 2 年前檢視次數 189 次
1 個回答
0

Hi!

CodeDeploy does support Environment Variables, thereby affecting a number of operational parameters. If you read the AWS documentation as specified on: https://aws.amazon.com/about-aws/whats-new/2015/05/aws-codedeploy-supports-environment-variables/ you will see that there is a statement - Common use cases for environment variables include varying the application server port or the logging level based on whether the script is running in the “Staging” or “Production” deployment group.

Further, reading thru the blog post as mentioned in the same article, there is an explanation of how to change the code to change logging levels. This is will require some coding knowledge.

I hope this helps.

If you find that I have answered your query, please help me by marking it as an accepted answer.

AWS
ART
已回答 8 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南