Presslabs logging system

For every development process you need logs to check that the work you're performing is actually doing what it's supposed to do. Besides that, logs help you identify and fix issues that might appear on your site.

Where can I access the site logs?

The logs we provide for your site are accessible in the Presslabs dashboard, on the SITES section -> Development menu.

You'll notice some development flags, here's what they do:

  • Save queries - this sets the SAVEQUERIES WordPress constant to true or false.
  • JavaScript debug - when this option is enabled, it loads the uncompressed versions of scripts and stylesheets from the WordPress core instead of the minified ones.
  • Log level - this sets the level for the logs are generated for your site:
    • ERROR - only fatal errors are logged. This means all PHP fatal errors and E_USER_ERROR.
    • WARNING (Default setting) - warnings are logged as well. This extends ERROR level with E_WARNING, E_CORE_WARNING, E_COMPILE_WARNING, E_USER_WARNING.
    • INFO - this logs everything, including E_USER_NOTICE, E_NOTICE, E_DEPRECATED, E_USER_DEPRECATED, E_STRICT.
    • DEBUG - besides all the above, this also sets the WP_DEBUG constant to true and changes the way errors are displayed by including the stack trace. Note that displaying the stack trace can expose sensitive information, so use it carefully on production websites.
  • Error log - this is the actual error log, where you can check and search the errors of your site from the last two weeks.

What kind of information can I find in the logs?

This obviously depends on the log level you've set for the site. Besides the standard php and WordPress related logs, we're adding various other logs, such as:

  • Cache refresh notifications - these indicate URL's that take a long time to refresh, or errors related to cache refreshes.
  • database errors - errors or notifications from MySQL
  • transactional e-mails - details about e-mails sent from WordPress (such as comment notifications, new users, contact forms etc.)
  • php-fpm notifications - these contain errors or notifications from php-fpm
headset

Still need help?

Have we not answered your question? Don't worry, you can contact us for more informationContact us

card

Get updates from Presslabs

Feature announcements, how-to's and news feed

Sign up for newsletter


powered by MailChimp!