itn / log-viewer-bundle
Provides a quick way to access application logs
Installs: 4 669
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- ptachoire/tac: ~1.0
- symfony/symfony: >=2.0.0
This package is auto-updated.
Last update: 2022-02-01 12:25:51 UTC
README
Provides a quick way to access application logs.
Installation
Composer
Add itn/log-viewer-bundle
to your required field. Then install/update your
dependencies.
app/AppKernel.php
Register the ITNLogViewerBundle
:
# app/AppKernel.php public function registerBundles() { $bundles = array( // ... new ITN\Bundle\LogViewerBundle\ITNLogViewerBundle(), ); }
Routing
Add the following route in the app/config/routing.yml
file.
log_show: pattern: /log/{env} defaults: { _controller: ITNLogViewerBundle:Default:index }
NB: The logs will then be publicly accessible. It's up to you to restrict the access to this route.
License
This bundle is under the MIT licence.