blog
contact
hire me
aws-lambda

Viewing console.log's of a lambda function

Free RDS Ops Guide

No guesswork, no wasted spend.

6 actionable fixes that lower costs and make your database faster today.

    No spam. Unsubscribe at any time.

    A lot of developers are used to running their code and seeing console.log locally, but when deploying or debugging a lambda function to AWS, it’s not immediately obvious where these debug logs are printed.

    Head over to the AWS console and locate the Lambda in question.

    Open up the Monitor tab under the function overview panel, then View CloudWatch logs.

    image

    This opens up a new service page with a list of requests, sometimes grouped, to this lambda function.

    image

    Choosing the most recent log makes sense here. You’ll get a list of data with arrows that you can click to drop down.

    This is where you can find the console.log() statements. image

    You can also use a useful logger with Lumigo.io but that is another service all together.

    Free RDS Ops Guide

    No guesswork, no wasted spend.

    6 actionable fixes that lower costs and make your database faster today.

      No spam. Unsubscribe at any time.