Home Knowledge Base WP Activity Log How to enable request logging in WP Activity Log

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.

BLACK FRIDAY

Close the CTA

Save 30% across all our plugins.

SALE NOW LIVE

Upgrade today

Save 30% across all our plugins

Close the CTA

BLACK FRIDAY

SALE NOW ON!

Close the CTA
Were you able to find what you were looking for?