You can access and download logs on your projects to get details on how your project and app are behaving. You can use both Platform.sh CLI and SSH to get to logs.
Depending on your project type, log locations can be different. To access your files, follow the steps:
-
Access the container by running
platform ssh -e ENVIRONMENT_NAME
-
Change to the right directory by running
cd /var/log
.If you’re on a Dedicated Gen 2 cluster, run
/var/log/platform/APP_NAME/
-
Read the desired log, such as by running
tail access.log
.
For detailed steps, see how you can download your files using the CLI or using SSH.
For further info on how you access or forwards logs, please check Documentation on how to Consume logs.