5

I have set up a serverless express function (integrated with API gateway) using "amplify add api". If I log something from one of the routes for example:

app.get('/items', function (req, res) {console.log('hello')}

Where do I find the hello?

2 Answers2

0

You can view the console.log() using AWS CloudWatch Logs.

But as you want to view the logs from your terminal I would recommend using awslogs.

yudhiesh
  • 6,383
  • 3
  • 16
  • 49
0

They are logged to CloudWatch, but they might be in a different region from your application (try Oregon).

Evan
  • 1,348
  • 2
  • 10
  • 20