Difference between revisions of "Extensions:Log Viewer"
Tag: 2017 source edit |
Tag: 2017 source edit |
||
Line 1: | Line 1: | ||
− | {{Extensioninfobox|title=Log Viewer|desc=Allows admins to view/delete laravel logs in the storage directory without ssh-ing into their host. |status=testing |github={{Github|user=Cylunny|branch=extension/log-viewer}}|LKVer=2.1.7|migration=no|package=no}} | + | {{Extensioninfobox|title=Log Viewer|desc=Allows admins to view/delete laravel logs in the storage directory without ssh-ing into their host. |auth=Cylunny|status=testing |github={{Github|user=Cylunny|branch=extension/log-viewer}}|LKVer=2.1.7|migration=no|package=no}} |
For those who don't want to ssh into their host just to check logs / deal with console commands to do so. You can now do it from the admin panel on your site itself! | For those who don't want to ssh into their host just to check logs / deal with console commands to do so. You can now do it from the admin panel on your site itself! | ||
Latest revision as of 22:26, 14 July 2024
Description | Allows admins to view/delete laravel logs in the storage directory without ssh-ing into their host. |
---|---|
Author(s) | Cylunny |
Status | testing |
Github | extension/log-viewer |
LK Version | 2.1.7 |
For those who don't want to ssh into their host just to check logs / deal with console commands to do so. You can now do it from the admin panel on your site itself!
Installation
- pull & deal with merge conflicts
php artisan optimize
x2php artisan update-extension-tracker
Configuration
It should work as is! Unless you changed the default log folder somehow.. it should be under storage/logs.
Usage
Go to your admin panel and under settings you should see the log viewer!
Troubleshooting
If you have custom log entries in your normal laravel log files (named something like laravel-2024-07-07.log), you may have to exchange the parseLaravelLog() function with the generic parseLog() function in the LogController->getLog() function. This reads and prints everything and does not try build a collapsible stacktrace.
Images
https://imgur.com/a/log-viewer-UylOjSY
See Also
If this extension helped you, feel free to support me on Kofi!