Download the PHP package codebuds/easyadmin-log-viewer-bundle without Composer
On this page you can find all versions of the php package codebuds/easyadmin-log-viewer-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package easyadmin-log-viewer-bundle
EasyAdmin Log Viewer Bundle
A Symfony bundle that provides a log viewer interface for EasyAdmin 4, compatible with Symfony 7 and PHP 8.3.
Features
- View log files directly from your EasyAdmin dashboard
- Download log files
- Delete log files
- Filter log entries by level and type
- Configurable route prefix
Requirements
- PHP 8.3+
- Symfony 7+
- EasyAdmin 4
Installation
Use Composer to install the bundle:
Configuration
Add the bundle to your config/bundles.php
:
Create a configuration file config/packages/easy_admin_log_viewer.yaml
:
The level is what is automatically picked up from the log files. Then a CSS class can be set per level. By default the predefined Bootstrap styles can be used primary
, secondary
, success
, danger
, warning
, info
, light
, dark
Twig component
A default path has to be added to the twig_component.yaml
configuration file:
Routing
The following needs to be added to the applications routes.yaml configuration file:
Customizing the Route Prefix
You can customize the route prefix in your configuration:
This will change all log viewer routes to start with /custom-admin
instead of the default /admin
.
Adding the log viewer to the dashboard
To see the log files the route can be added to your EasyAdmin dashboard controller:
Security
Only users with ROLE_ADMIN
can access the log viewer interface. Make sure to properly secure your admin routes.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Screenshots
List all the log files
Show all lines
Filter by type
Filter by level
All versions of easyadmin-log-viewer-bundle with dependencies
easycorp/easyadmin-bundle Version ^4.0
phpstan/phpstan Version ^1.12|^2.0
symfony/framework-bundle Version ^7.0
symfony/twig-bundle Version ^7.0
symfony/ux-live-component Version ^2.13
symfony/ux-twig-component Version ^2.13