Ignore Words with [Square Brackets]
-
Hello,
I’m really enjoying your plugin, but I’ve encountered a small issue. Many plugins use prefixes like [DEBUG], [INFO], [WARNING], and [ERROR] when debugging is activated. However, these specific messages are being replaced by “No error message specified…”, which requires me to manually access the file to view them. I believe this problem stems from the way timestamps are processed, as the plugin isn’t anticipating a second set of square brackets.To address this, I’ve added a line in the file
/debug-log-manager/classes/class-debug-log.php
within theget_processed_entries()
function:// Read the errors log file $log = file_get_contents($debug_log_file_path); // NEW: Ignore words between square brackets $log = preg_replace("/\[([a-zA-Z]+)\]/", "$1", $log);
I hope this suggestion proves helpful for future updates.
Best regards,
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Ignore Words with [Square Brackets]’ is closed to new replies.