Logs provide information about events and errors that occur on your site. They are generated in both preview mode and for the published site, and can originate from your site's frontend and backend.
Use logs to:
console.log()
or console.info()
.Note: Verbose logging is only supported for routers.
Logs are available directly in your site dashboard, as well as through external monitoring tools you can connect to your site.
You can view your site's logs with:
Each log contains the payload message as well as log metadata, such as the log's timestamp, origin, the site's view mode, and the site's revision number.
Learn more about the log object structure.