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

1 Answer
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
answered 8 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions