Closed maslick closed 2 years ago
That's interesting. The logs showed up in CloudWatch for me when I last tested the hook. I did not provide any custom configuration for cloudwatch, just went with whatever was generated by the init command.
The issue with me was that I forgot to specify log level in the handler code:
# Use this logger to forward log messages to CloudWatch Logs.
LOG = logging.getLogger(__name__)
LOG.setLevel(logging.INFO) # <- this line was missing
Ah! Thanks for following up 👍
This issue is connected with https://stackoverflow.com/questions/72526742/cloudformation-hooks-do-not-push-logs-to-cloudwatch-logs