4 ms·
> It's super easy to log to CloudWatch from Lambda with the Python logger class Or even just print(): You've got a unique log group for a lambda, CloudWatch lo
by dragonwriter 4y ago
> It's super easy to log to CloudWatch from Lambda with the Python logger class
Or even just print(): You've got a unique log group for a lambda, CloudWatch logs autonatically timestamps entries, and stdout & stderr from a lambda both go to the current CloudWatch log stream in the lambda’s CloudWatch logs group.
- efitz 4y agoMy experience with Python in Lambda was that my functions ran significantly faster when I used logger rather than print for logging. I agree that Lambda captures stdout to CloudWatch, but my experience was that logger was better (and more intentional). ed: clarified that this relates to AWS Lambda only
- deleted 4y ago[deleted]