How can we help?

Search for answers or browse our knowledge base.

Table of Contents

How to enable request logging in WP Activity Log

WP Activity Log has a built-in feature that enables you to keep a log of all requests sent to your website and the plugin. This feature can be very useful for debugging and development purposes. Kindly note that request logging can be resource-intensive. As such, it should only be enabled for development or debugging purposes. It should not be enabled on a live site where possible.

To enable request logging on your WordPress website, add the following to your theme’s functions.php file or site-specific plugin.

add_filter( ‘wsal_request_logging_enabled’, ‘__return_true’ );

By default, the log is saved in the WP Activity Log working directory, which is located at /wp-content/uploads/wp-activity-log/

You can change the location of the working directory by updating the WSAL_WORKING_DIR_PATH constant.