Accessing the PHP Error Logs

Seeing errors coming off a PHP app is usually very easy in Lando:

lando logs -s appserver -f

Because lando logs is actually a light wrapper around docker logs, you'll notice that you also get general server error messages and other warnings aside from PHP errors. Sometimes it can help to grep the output to isolate PHP-relevant messages:

lando logs -s appserver -f | grep 'WARNING\|PHP'

If PHP isn't running in "appserver"...

appserver is the default service name in most PHP applications on Lando. If you have PHP running in a service with a different name than appserver, simply substitute the relevant service name instead of appserver.