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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠