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.

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