How do you look at console.log output of the amazon lambda function

前端 未结 4 2273
太阳男子
太阳男子 2021-02-12 09:45

When you do a

console.log(\'Loading function\');

in an amazon lambda function, where does that go?

My setup api gateway lambda functio

4条回答
  •  梦谈多话
    2021-02-12 10:43

    In the console Cloudwatch > Logs Or with awscli:

    aws logs get-log-events  --log-group-name /aws/lambda/my_group_name_here --log-stream-name stream_name_here
    

    Some special characters like $ need to be escaped with a preceding \

提交回复
热议问题