When you do a
console.log('Loading function');
in an amazon lambda function, where does that go?
My setup api gateway lambda function nodejs6.10 curl https://n2tredacted.execute-api.us-east-1.amazonaws.com/prod/redactedFunc
To view logs using the Lambda consoleOpen the Functions page of the Lambda console. Choose a function. Choose Monitor. Choose View logs in CloudWatch.
Lambda automatically captures runtime logs and streams them to Amazon CloudWatch. This log stream contains the logs that your function code and extensions generate, and also the logs that Lambda generates as part of the function invocation.
After creating your Lambda function, view it in the AWS Management Console. From the top of your Management console, click Services and type in "Lambda". Select "Functions" from the left sidebar and then click on ambSupplyChainConnector.
AWS Lambda logs are written to CloudWatch Logs. Here's how to access them:
If you prefer to retrieve CloudWatch Logs outside of the AWS Console, then there are numerous CLI options:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With