A Symfony bundle to enable viewing your log files via your web front end.
It includes color-coded and collapsable log levels, as well as formatted JSON to SQL.
Use composer to download the bundle from packagist
composer require greenskies/web-log-viewer-bundle
public function registerBundles()
{
$bundles = [
//...
new Greenskies\WebLogViewerBundle\WebLogViewerBundle(),
//...
];
# app/config/routing.yml
logs:
resource: '@WebLogViewerBundle/Controller/'
type: annotation
Since logs can contain sensitive data it is important that we control access to them.
security:
#...
access_control:
- { path: ^/logs, roles: ROLE_ADMIN }
#...
#...