2017 © Pedro Peláez
 

symfony-bundle web-log-viewer-bundle

Symfony Web Log Viewer Bundle

image

greenskies/web-log-viewer-bundle

Symfony Web Log Viewer Bundle

  • Monday, March 12, 2018
  • by eidsonator
  • Repository
  • 1 Watchers
  • 1 Stars
  • 229 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 9 Versions
  • 13 % Grown

The README.md

build status Coverage Status, (*1)

WebLogViewerBundle

Description

A Symfony bundle to enable viewing your log files via your web front end., (*2)

It includes color-coded and collapsable log levels, as well as formatted JSON to SQL., (*3)

Installation

Use composer to download the bundle from packagist, (*4)

composer require greenskies/web-log-viewer-bundle

Register the bundle

public function registerBundles()
    {
        $bundles = [
            //... 
            new Greenskies\WebLogViewerBundle\WebLogViewerBundle(),
            //...
        ];

Routing

# app/config/routing.yml

logs:
    resource: '@WebLogViewerBundle/Controller/'
    type: annotation

Security

Since logs can contain sensitive data it is important that we control access to them., (*5)

security:
    #...
    access_control:
        - { path: ^/logs,           roles: ROLE_ADMIN }
        #...
    #...

The Versions