Skip to content

AntoOnline/wordpress-plugin-request-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Request Logger WordPress Plugin

The Request Logger WordPress plugin logs headers from requests to the server. It is useful when sitting behind a proxy or multiple proxies to determine the headers being returned.

Installation

To install the Request Logger plugin, follow these steps:

  1. Download the PHP code for the plugin.
  2. Zip the PHP code to create a WordPress plugin file (e.g., request-logger.zip).

Plugin Activation

  1. Log in to your WordPress admin dashboard.
  2. Go to "Plugins" and click on "Add New."
  3. Click on the "Upload Plugin" button.
  4. Choose the request-logger.zip file you created earlier and click "Install Now."
  5. After installation, click "Activate Plugin" to activate the Request Logger plugin.

Plugin Configuration

  1. Once activated, the Request Logger plugin adds a new menu item under "Tools" called "Request Logger."
  2. Click on "Request Logger" to access the plugin settings page.
  3. On the settings page, you will find a checkbox labeled "Enable logging." Check this box to enable request header logging.
  4. Click the "Save Changes" button to save your settings.

Viewing Logs

The logs generated by the Request Logger plugin are stored in the following directory:

<plugin_directory>/logs/

To view the contents of a log file, follow these steps:

  1. Access the server where WordPress is installed.
  2. Navigate to the plugin directory and then the "logs" subdirectory.
  3. Locate the log file you wish to view (e.g., request-log-<date>.log).
  4. Download the log file to your local machine.
  5. Open the log file using a text editor to view its contents.

Disabling Logging

Remember to disable the Request Logger plugin when you have finished reviewing the logs. To disable logging:

  1. Go to the "Request Logger" settings page under "Tools."
  2. Uncheck the "Enable logging" checkbox.
  3. Click the "Save Changes" button.

By default, the Request Logger plugin will automatically disable logging after 30 minutes of activation. This feature can be enabled or disabled in the plugin settings.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Want to connect?

Feel free to contact me on Twitter, DEV Community or LinkedIn if you have any questions or suggestions.

Or just visit my website to see what I do.

Releases

No releases published

Packages

No packages published

Languages