Search code examples
aws-amplifyaws-appsync

AWS amplify console.log() from backend side


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?


Solution

  • 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.