Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

c0dehunter's avatar

Lambda function not saving logs when timed out

I'm using Laravel Vapor for my API backend, and it uses Lambda functions for execution. I noticed that whenever Lambda function will time out, no logs will be saved to CloudWatch. I use Log::info(), but it will only show in CloudWatch when the function finishes correctly.

Is there a way to force Log to be saved right away, or to say to Lambda to store my logs in case of time out?

0 likes
0 replies

Please or to participate in this conversation.