weteef/eventerrorlogger

Zend Framework 2 module for logging dispatch.error and render.error events

This package's canonical repository appears to be gone and the package has been frozen as a result.

v1.0.1 2013-12-01 21:17 UTC

This package is not auto-updated.

Last update: 2024-03-11 22:54:13 UTC


README

This module logs dispatch.error and render.error events. It's useful on a production system to get notified when a user gets an error page.

##Installation

  • Add "weteef/eventerrorlogger": "1.*" to the require section of your composer.json
  • Add 'EventErrorLogger' to the modules array in your application.config.php
  • Copy the file weteef/eventerrorlogger/config/eventerrorlogger.global.php.dist to the config/autoload folder an rename it to eventerrorlogger.global.php
  • Add a logger to the loggers array. Example:
'loggers' => array(
      'myLogger'
),

The logger need to be a instance of \Zend\Log\LoggerInterface