Extensions:Log Viewer

From Lorekeeper Wiki
Jump to navigation Jump to search
Log Viewer
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 x2
  • php 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!