One of the most efficient ways of debugging your application is checking its logs. On DXP Cloud, you can access your environment's logs via the Web Console, CLI, or downloading the log file.
The easiest way of accessing an environment's logs is via the Web Console. To do that, you can select which environment you want to access and click on the Logs tab on the left-side menu.
If you want to access a specific service logs, you can select the service by clicking on the selector.
You can also download your environment logs by clicking on Download Logs button located on the logs page.
Another way of accessing logs is via your CLI. You can access it by running the following command on your terminal:
It will list all your services so that you can choose the one you want to access the logs. If you want to access logs from a specific environment you can type its id or run the command containing the ID of your environment:
we log -p myenvironmentid
The same is for specifying a service:
we log -p myenvironmentid -s myserviceid