ITNLogViewerBundle
Provides a quick way to access application logs., (*1)
Installation
Composer
Add itn/log-viewer-bundle to your required field. Then install/update your
dependencies., (*2)
app/AppKernel.php
Register the ITNLogViewerBundle:, (*3)
# 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., (*4)
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., (*5)
License
This bundle is under the MIT
licence., (*6)