Where does the console.log output go when I deploy aws lambda locally?

Viewed 1767

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

1 Answers

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
Related