How to enable request logging

Search Knowledge Base by Keyword

You are here:

WP Activity log provides a built-in mechanism which allows you to log all the requests sent to our plugin. This is a very useful for debugging purposes and for developers. To enable request logging on your website, simply add the following to your themes functions.php file, or to your site-specific plugin. This can also be a mu-plugin.

add_filter( 'wsal_request_logging_enabled', '__return_true' );

IMPORTANT: The request logging feature is very resource intensive. It must only be enabled for development and debugging purposes. It should not be enabled on a live website.

Once this is enabled, the plugin keeps a log of every request it receives in a log file in the working directory.