devoralive / log-viewer-bundle
Display symfony logs in JSON and in defined route
Installs: 96
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 2
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.5.9
- symfony/framework-bundle: ^2.8 || ^3.0
This package is auto-updated.
Last update: 2024-10-13 21:35:14 UTC
README
The Logger viewer bundle is a simple way to display the logs of your Symfony application. It will read the logs from the monolog bundle route and display them in Json format in the browser.
This way you can fetch them or analyze your application. Be aware that you should not use this in production without adding a security layer to the route you define.
All the code is tested and inspected by external services.
How to use
Install the library with composer:
composer require devoralive/log-viewer-bundle
Enable the bundle in AppKernel.php
new Devoralive\LogViewerBundle\LogViewerBundle(),
Add this in config/routing.yml
log-viewer:
resource: "@LogViewerBundle/Resources/config/routing.yml"
prefix: /_logs
Once configuration is done, you should be able to visualize your app logs.
To display dev.log
go to project.localhost/_logs/_dev
To display prod.log
go to project.localhost/_logs/_prod
Help us to improve
We are happy to accept suggestions or pull requests. If you are willing to help us develop better software please create a pull request here following the PSR-2 code style and we will use reviewable to check the code and if al test pass and no issues are detected by SensioLab Insights you could will be ready to merge.