DEV Community

Cover image for Viewing console.log's of a lambda function
Calvin Torra
Calvin Torra

Posted on • Originally published at calvintorra.com

Viewing console.log's of a lambda function

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 description

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

Image description

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 description

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

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay