johnbillion / query-monitor

The developer tools panel for WordPress
https://querymonitor.com
GNU General Public License v2.0
1.59k stars 208 forks source link

Feature Request: Quick Link to view error_log #755

Open MadtownLems opened 1 year ago

MadtownLems commented 1 year ago

With all the new ajax-y block editor and site editor stuff, I find that sometimes there are php errors that QM can't/doesn't display, and I find myself going to the ole' PHP error_log file. However, that's a bit annoying in practice: sftping the error log down, opening it, going to the end, etc. (ours aren't available via the web so can't just bookmark it or whatever)

I was wondering if you'd consider adding a quick link to view the last several lines of the PHP error log directly through QM.

Currently, the "Environment" tab tells me where the WP_DEBUG_LOG is. Perhaps it could have a little expansion button there that shows the last couple of lines? (similar to how you can expand the "Error Reporting" or "Extensions" sections.

Thanks for considering!

johnbillion commented 1 year ago

I've used Error Log Monitor in the past for this but I think it could be useful to have in Query Monitor too. I'll have a think about it.