Sail Knowledgebase

How to Access Server Logs with Sail CLI for WordPress

In this article you will learn how to use the sail logs command to view server logs using Sail CLI.

If you like Sail, consider sponsoring us via GitHub!

Logging

On servers provisioned with Sail, important server logs are written to the system journal via syslog. They can be access using a few convenient shortcuts available in the Sail CLI:

sail logs
sail logs --nginx
sail logs --php
sail logs --postfix

You cad add --follow or -f to tail-follow these logs, which is really useful when debugging.

Other server logs can be found in the /var/log directory, which can be accessed using an SSH shell with Sail.

If you're having trouble with accessing your logs in Sail, please refer to our getting help section.