Monitor, Track & Debug with Ease
WP Logs is a lightweight yet powerful WordPress plugin that provides comprehensive logging capabilities for your WordPress site. Whether you’re debugging plugin interactions, monitoring HTTP requests, or tracking user activities, WP Logs gives you the visibility you need without the complexity.
Key Features
- Custom Log Storage: All logs are securely stored in a dedicated database table for improved performance and organization
- Flexible Message Logging: Store custom messages with variable placeholders for dynamic content
- HTTP Request Tracking: Selectively monitor API calls and external service interactions
- User-Friendly Interface: Access all logs through a dedicated admin page (WP Admin > Logs)
- Developer-Friendly: Simple integration with your existing themes and plugins
How It Works
Log Custom Messages
Easily store log messages from anywhere in your codebase:
do_action(
'swpl_log',
'Your Plugin Name', // Source of the log
'{{user}} performed {{action}}', // Message with placeholders
array( // Context variables
'user' => 'John Doe',
'action' => 'profile update'
)
);
Track HTTP Requests
Monitor specific external API calls and integrations:
add_filter( 'swpl_log_request', function ( $enabled, $url ) {
// Define URLs you want to monitor
$target_urls = [
'https://api.payment-gateway.com',
'https://external-service.com/api',
get_option( 'your_api_endpoint' )
];
foreach ( $target_urls as $target_url ) {
if ( 0 === strpos( $url, $target_url ) ) {
return true;
}
}
return $enabled;
}, 10, 2 );
Access & Analyze
View all your logs in one centralized location through the WordPress admin dashboard. Sort, filter, and search to quickly find the information you need.
Perfect For
- Developers: Debug plugin and theme interactions
- Site Administrators: Monitor critical site operations
- Security Teams: Track suspicious activities and API requests
- Support Staff: Diagnose user-reported issues
Requirements
- WordPress 5.0 or higher
- PHP 7.4 or higher
- Tested up to WordPress 6.8.1
Get Started Today
Download WP Logs from our GitHub repository and start gaining insights into your WordPress site’s operations.