You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: guides/v2.2/cloud/project/log-locations.md
+26-25Lines changed: 26 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -18,10 +18,10 @@ You can [set up log-based Slack and email notifications][slacklog] when configur
18
18
19
19
## Viewing logs
20
20
21
-
There are three ways to view logs: file system, project web UI, or magento-cloud CLI.
21
+
There are three ways to view logs: file system, project web UI, or the `magento-cloud` CLI.
22
22
23
-
-**Log directories**—The `var/log` directory contains logs for all environments. You must use an SSH connection to access the `var/log` directory in the remote server environment.
24
-
-**Project web UI**—You can see build and post-deploy log information in the environment messages list.
23
+
-**Log directories**—The `/var/log`system directory contains logs for all environments. The `var/log/` Magento directory contains app-specific logs unique to a particular environment. You must use an SSH connection to access logs in a remote server environment. These directories are not shared between nodes in a cluster.
24
+
-**Project web UI**—You can see build and post-deploy log information in the environment _messages_ list.
25
25
-**Magento Cloud CLI**—You can view logs using the `magento-cloud log` command.
26
26
27
27
### Log command
@@ -45,7 +45,6 @@ Enter a number to choose a log:
45
45
[6] post-deploy
46
46
>
47
47
```
48
-
{:.no-copy}
49
48
50
49
By default, the command displays the log from the Integration environment. For the Pro Staging logs, you need to specify the log location using the project ID.
Logs from the deploy hook are unique for each environment. The deploy log is in the following directories:
83
+
Though the `cloud.log` file contains feedback from each stage of the deployment process, logs from the deploy hook are unique to each environment. The environment-specific deploy log is in the following directories:
86
84
87
-
-**Starter and Pro Integration**: `var/log/deploy.log`
The value of `<project_id>` depends on the project ID and whether the environment is Staging or Production. For example, with a project ID of `yw1unoukjcawe`, the Staging environment user is `yw1unoukjcawe_stg` and the Production environment user is `yw1unoukjcawe`.
92
-
Using that example, the deploy log is: `var/log/platform/yw1unoukjcawe_stg/deploy.log`
90
+
Using that example, the deploy log is: `/var/log/platform/yw1unoukjcawe_stg/deploy.log`
93
91
94
92
The log for each deployment concatenates to the specific `deploy.log` file. The following example prints the deploy log in the terminal:
Similar to deploy logs, application logs are unique for each environment. The following table lists application log locations on each environment:
120
+
Similar to deploy logs, application logs are unique for each environment. For Pro Staging and Production environments, the Deploy, Post-deploy, and Cron logs are available only on the first node in the cluster.
121
+
122
+
The following table lists application log locations on each environment:
123
123
124
124
Log file | Starter and Pro Integration | Pro Staging | Pro Production
Because each service runs in a separate container, the service logs are not available in the Integration environment. {{site.data.var.ece}} provides access to the web server container in the Integration environment only. The following service log locations are for the Pro Staging and Production environments:
0 commit comments