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

1

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

Schaaff answered 16/11, 2020 at 14:42 Comment(2)
I think it also goes to the stdout (your command prompt/terminal/console)Gord
@Gord Really..?Krakau
B
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
Bricole answered 16/11, 2020 at 14:46 Comment(1)
didn't notice it at first since it had some prefixin front of the outputSchaaff

© 2022 - 2024 — McMap. All rights reserved.