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 réponse
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
répondu il y a 8 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions