Logs can be very helpful when troubleshooting and debugging issues on your WordPress sites. Viewing your access and WordPress error logs is pretty simple. Just navigate to <projectPath>/logs/
folder on your hard drive and open any log file in your favourite text editor.
<projectPath>
default value is /Users/user/DevKinsta
WP logs
First on your site’s info page you need to enable WP_DEBUG
option. Read more on wordpress.org
Location
<projectPath>/public/<siteName>/wp-content/debug.log
Access logs
Provides feedback of activity and performance of your sites.
It contains all requests processed by DevKinsta so when you open index.php
of your site in a browser the request will immediately show up here with the following order:
- Date and time
- Request (Method and URI)
- Status (HTTP error code or “200 OK” if everything’s fine) Learn more about HTTP response codes in our Knowledge Base.
- Bytes sent
- HTTP referer
- User agent
- HTTP X Forwarded for
Location
<projectPath>/logs/<siteName>_access.log
Example
[30/Dec/2020:13:49:35 +0000] "GET /wp-content/themes/twentytwentyone/assets/css/print.css?ver=1.0 HTTP/1.1" 200 2897 "http://testsite.local/?skip_cache=1" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_16_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.119 Electron/9.0.5 Safari/537.36" "-"
Error logs
Location
<projectPath>/logs/<siteName>_error.log
PHP-FPM logs
Location
<projectPath>/logs/php7.2-fpm.log
<projectPath>/logs/php7.3-fpm.log
<projectPath>/logs/php7.4-fpm.log
<projectPath>/logs/php8.0-fpm.log
Service logs
# NGINX logs
docker logs -f devkinsta_nginx
# PHP-FPM logs
docker logs -f devkinsta_fpm
# MariaDB logs
docker logs -f devkinsta_db
# MailHog logs
docker logs -f devkinsta_mailhog