greenskies / web-log-viewer-bundle
Symfony Web Log Viewer Bundle
Installs: 7 671
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 2
Forks: 2
Open Issues: 0
Type:symfony-bundle
Requires
- greenskies/collection: ^0.0.3
- jdorn/sql-formatter: ^1.2
- sensio/framework-extra-bundle: ^3.0.2||^5.0
- symfony/framework-bundle: ^3.3||^4.0
- twig/twig: ^2.4
Requires (Dev)
- phpunit/phpunit: ^6.4
- satooshi/php-coveralls: ^1.0
README
WebLogViewerBundle
Description
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.
Installation
Use composer to download the bundle from packagist
composer require greenskies/web-log-viewer-bundle
Register the bundle
public function registerBundles() { $bundles = [ //... new Greenskies\WebLogViewerBundle\WebLogViewerBundle(), //... ];
Routing
# app/config/routing.yml logs: resource: '@WebLogViewerBundle/Controller/' type: annotation
Security
Since logs can contain sensitive data it is important that we control access to them.
security: #... access_control: - { path: ^/logs, roles: ROLE_ADMIN } #... #...