Logs are important because it allows you to see what's happening inside the app, especially when a crisis happens. Now keeps logs of all of your deployments and allows you to search them.
Let's have a look at how you can access logs.
Accessing logs via the
now CLI is simple as invoking this command:
You can also use the domain name of your app to search logs:
For more information on
now logs, run the help command with:
Here's an advance
now logs command to let you inspect the last 10 HTTP GET requests.
You can also access and search logs via your web dashboard at https://zeit.co/dashboard.
Click any of your deployment URLs inside the dashboard and start searching logs.
You may need to click the "Logs" link on the header (top right) to see logs.