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

2
  • I think it also goes to the stdout (your command prompt/terminal/console) Commented Nov 17, 2020 at 0:13
  • @petey Really..? Commented Mar 14, 2022 at 14:21

1 Answer 1

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
Sign up to request clarification or add additional context in comments.

1 Comment

didn't notice it at first since it had some prefixin front of the output

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.