10

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

user2741831
  • 2,120
  • 2
  • 22
  • 43

1 Answers1

6

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
jarmod
  • 71,565
  • 16
  • 115
  • 122