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
-
I think it also goes to the stdout (your command prompt/terminal/console)petey– petey2020-11-17 00:13:33 +00:00Commented Nov 17, 2020 at 0:13
-
@petey Really..?jtlz2– jtlz22022-03-14 14:21:40 +00:00Commented Mar 14, 2022 at 14:21
Add a comment
|
1 Answer
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
1 Comment
user2741831
didn't notice it at first since it had some prefixin front of the output