itn/log-viewer-bundle

This package is abandoned and no longer maintained. No replacement package was suggested.

Provides a quick way to access application logs

Installs: 4 670

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 3

Forks: 0

Open Issues: 0

Type:symfony-bundle

1.0.1 2015-01-16 09:42 UTC

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.