If I use aws lambda on the cloud, console.log output is routed to cloudwatch. But where does it go if I use sam local start-api
?
Because I can't find it in cloudwatch
Where does the console.log output go when I deploy aws lambda locally?
Asked Answered
I think it also goes to the stdout (your command prompt/terminal/console) –
Gord
@Gord Really..? –
Krakau
The sam local start-api documentation shows that you can control the log file that runtime logs are sent to with the command line option:
-l, --log-file filename
didn't notice it at first since it had some prefixin front of the output –
Schaaff
© 2022 - 2024 — McMap. All rights reserved.