2017 © Pedro Peláez
 

symfony-bundle error-logger-bundle

Symfony2 production error logger. Logs notices, warnings, exceptions and fatal exceptions. Groups similar errors together and displays additional server information.

image

twodudes/error-logger-bundle

Symfony2 production error logger. Logs notices, warnings, exceptions and fatal exceptions. Groups similar errors together and displays additional server information.

  • Thursday, November 5, 2015
  • by megawilddaddy
  • Repository
  • 2 Watchers
  • 1 Stars
  • 131 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Description

This bundle helps you to accumulate and browse errors in the production environment. Repetitive errors are grouped together., (*1)

Installation

1) In your composer.json require section:, (*2)

"twodudes/error-logger-bundle": "dev-master"

2) Run "composer update" and add in the bundles configuration array:, (*3)


new TwoDudes\ErrorLoggerBundle\TwoDudesErrorLoggerBundle()

3) In your routing.yml:, (*4)


two_dudes_errors: resource: "@TwoDudesErrorLoggerBundle/Resources/config/routing.yml"

4) In your config.prod:, (*5)


two_dudes: error_logger: storage: service: two_dudes.storage.db params: db_host: xxxxx db_port: xxxxx db_name: xxxxx db_user: xxxxx db_password: xxxxx

5) Create a table to store errors:, (*6)


php app/console twodudes:errorlogger:setup

Now you can access /_errors page, where everything will be displayed. Don't forget to protect it with a firewall. If you want to create your own storage - just implement StorageManagerInterface., (*7)

TIPS:

1) How to work doctrine migrations., (*8)


doctrine: dbal: schema_filter: ~^(?!errors)~

2) How to protect /_errors page in security.yml, (*9)


security: encoders: Symfony\Component\Security\Core\User\User: plaintext providers: inmemory: memory: users: admin: { password: adminpass } firewalls: errors: pattern: ^/_errors http_basic: provider: inmemory

3) Disable 404 errors logging (Which are 'no route found'), (*10)


two_dudes: error_logger: log404: false

The Versions

05/11 2015

dev-master

9999999-dev

Symfony2 production error logger. Logs notices, warnings, exceptions and fatal exceptions. Groups similar errors together and displays additional server information.

  Sources   Download

MIT

The Requires

 

by Vasily Sokolov

logger error production error logger symfony2 error