amnuts / phperror-gui
A clean and effective single-file GUI for viewing entries in the PHP error log, allowing for filtering by path and by type.
Installs: 1 719
Dependents: 1
Suggesters: 0
Security: 0
Stars: 52
Watchers: 7
Forks: 17
Open Issues: 1
Requires
- php: >=5.4.0
This package is auto-updated.
Last update: 2024-11-16 06:58:37 UTC
README
A clean and effective single-file GUI for viewing entries in the PHP error log, allowing for filtering by path and by type.
getting started
There are two ways to getting started using this gui.
- Simply to copy/paste or download the phperror-gui.php to your server.
- Install via composer by running the command
composer require amnuts/phperror-gui
usage
Simply load the script up in your browser and it should show you the entries from the PHP log file. It will find the error log from the ini settings, though if you want to specify the log file you can change the $error_log
variable to the path of your error log file.
You can select the types of errors you want displaying, sort in different ways or filter based on the path of the file producing the error (as recoded in the log).
The interface will also attempt to show you the snippet of code where the error has occurred and also the stack trace if it's recorded in the log file.
cache
There is a very rudimentary option to cache the results. This is set by using the $cache variable and setting it to the path of the cache file (must be a writable location). It will store the results of the file scan and then the position in the file it read up to. On subsequent reads of the file it will seek to that position and start to read the file. This works so long as you are not doing log rotation as the seek position could suddenly become much greater than the file size. So it's only recommended that you use the cache if you keep the one log file.