- How do I install gboquizosanchez/filament-log-viewer in Laravel?
- Install it with composer require gboquizosanchez/filament-log-viewer, then register the plugin in your Filament panel provider using ->plugin(\Boquizo\FilamentLogViewer\FilamentLogViewerPlugin::make()). Optionally publish the configuration file with php artisan vendor:publish for the Boquizo FilamentLogViewer service provider. For Filament v4 and later, also add the plugin view path to your custom theme CSS.
- Which Filament versions does filament-log-viewer support?
- Plugin 1.x targets Filament 3.x, while 2.x supports Filament 4.x through 5.x. Version 1.x will not receive further updates, so choose 2.x for current Filament installations. Check your Filament major version before requiring the package.
- Does this plugin work with Laravel's default logging setup?
- Yes. The plugin is built for Laravel applications and reads logs through Laravel's default Monolog setup, using the LOG_CHANNEL value from your .env by default. It does not require database schema changes because it works with file-based logs. If you use custom or non-file log handlers, you may need additional adapters or configuration.
- How do I change the log channel or driver used by the viewer?
- By default the viewer reads the LOG_CHANNEL configured in your .env file. After publishing the configuration, you can override the channel or driver settings to point at the log source you want to inspect. The README's drivers section covers overriding the default channel; verify custom handlers are file-accessible.
- Can I filter logs by level, date, or stack trace in Filament?
- The plugin adds a Filament UI for browsing log entries by level, filtering by date, and inspecting stack traces. It is intended to reduce custom backend code for routine log inspection inside an admin panel. Exact filters and UI options may depend on the published configuration and plugin version.
- Does filament-log-viewer support Filament v4 custom themes?
- Filament v4 and later require a custom theme for this plugin. After creating the theme, add @source '../../../../vendor/gboquizosanchez/filament-log-viewer/resources/views/**/*.blade.php'; to the theme CSS source. Follow Filament's custom theme documentation if you have not set one up yet.
- Is there access control for viewing logs in the Filament panel?
- The README does not document built-in role-based or IP-based log access restrictions. In a Filament panel, access generally follows the panel's authentication and authorization rules, so restrict the panel or add policies and middleware as needed. Review this before exposing logs in production.
- How does the plugin handle very large Laravel log files?
- The documentation does not describe lazy loading or chunked reading for very large log files. Large files can still affect initial load and filtering performance, so use Laravel log rotation, archive old logs, and test against production-sized files. For 1GB+ logs, validate performance in staging before enabling the viewer for all users.
- Is filament-log-viewer tested and actively maintained?
- The README shows a Pest v4 tests badge, but it does not detail coverage for corrupted logs or high-concurrency edge cases. Maintenance status differs by major version: 1.x is frozen and 2.x is the supported line for Filament 4.x through 5.x. Review the repository's releases and tests before adopting it.
- Can I use filament-log-viewer without Filament?
- This package is a Filament panel plugin, so it is not a standalone Laravel log viewer. It is based on ARCANEDEV LogViewer, which can be evaluated directly if you need log viewing outside Filament. Within Filament, compare it with other log viewer plugins against your version and access-control needs.