Provides a quick way to access application logs.
Add itn/log-viewer-bundle
to your required field. Then install/update your
dependencies.
Register the ITNLogViewerBundle
:
# app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new ITN\Bundle\LogViewerBundle\ITNLogViewerBundle(),
);
}
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.
This bundle is under the MIT licence.