Where Can I Find WordPress Logs?

WordPress logs can be found in the logs directory of your WordPress installation. By default, this is located at:

C:\Program Files (x86)\WordPress\Logs

To view the logs for a specific site, you can use the wp_log() function:

wp_log( ‘http://example.com’, ‘site_log’, 1 );

The first argument is the URL of the site you’re investigating, the second is the log type (wp_log() only supports two log types at this time), and the third is the log level. There are six log levels, from debug (the default) to Fatal.

The other levels are informational, notice, warning, error, and informational_only.

The site_log level is the most verbose, and will show all requests and responses as they happen. The other levels will only show errors, warnings, and notices.