=== JS Error Logger === Contributors: jfgmedia Tags: dashboard widget, error reporting, debug, javascript, js Requires at least: 5.0 Tested up to: 6.7 Stable tag: 1.0 Requires PHP: 7.2.0 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Logs front-end javascript errors, and displays them in a dashboard widget == Description == The plugin catches most JS errors, logs them, and displays them in a dashboard widget. Here are some of its features: = WP Filters = **Log Maintenance:** The plugin cleans the log every 24 hours, to only keep the last 100 entries. "jserrlog_max_log_entries" to enable more or less entries, by returning an integer: `add_filter('jserrlog_max_log_entries',function(){return 200;})` **Max errors to log per page:** To prevent logging errors coming from infinite loops, the plugin will not log more than 10 errors per page load. "jserrlog_max_errors_per_page" to increase or decrease the number of logged errors per page load, by returning an integer: `add_filter('jserrlog_max_errors_per_page',function(){return 15;})` **Ajax calls:** By default, the plugin will call the server each time an error is triggered. "jserrlog_send_on_visibility_change" to only make one server call when the page visibility changes (tab change, browser reduced, etc...), by returning true: `add_filter('jserrlog_send_on_visibility_change','__return_true')` **Post Type Exclusion:** By default, the plugin will add its script on all post types. "jserrlog_ignored_post_types" to ignore specific post types, by returning an array of post types: `add_filter('jserrlog_ignored_post_types',function(){return ['post','products','my_cpt'];})` = Multisite = The plugin works with multisite. There's one error log per site. == Installation == 1. Visit the Plugins page within your dashboard and select "Add New" 2. Search for "JS Error Logger" 3. Click "Install" == Screenshots == 1. The JS Error Logger dashboard widget == Upgrade Notice == Not available at the moment == Changelog == = 1.0 = * Initial Release