2017 © Pedro PelĂĄez
 

library logbug

Logging of ZF2 exceptions and errors

image

gmbn/logbug

Logging of ZF2 exceptions and errors

  • Tuesday, November 29, 2016
  • by GMBN
  • Repository
  • 1 Watchers
  • 2 Stars
  • 34 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

LogBug Errors Notifier for Zend Framework 2

LogBug?

The LogBug Notifier for Zend Framework 2 gives you instant notifications of the errors in your application. Detect Handle and Catch E_* PHP errors , ‘dispatch.error’ and ‘render.error’ errors that handled by Framework, (*1)

Install

Installation with the composer

php composer.phar require gmbn/logbug:dev-master

Enable it in your application.config.php file, (*2)

<?php
return array(
    'modules' => array(
        'LogBug', // Must be added as the first module
        // ...
    ),
    // ...
);

Configuration

Create directory data/logs and make sure your application has write access to it. Copy the config/logbug.local.php.dist file to your config/autoload folder and change the settings, (*3)

<?php

return [
    "logbug" => [
        "email" => [
            "smtp" => [
                'host' => 'smtp.server.com',
                'username' => 'error@server.com',
                'password' => 'yourpassword',
                'ssl' => 'tls',
                'port' => 587,
            ],
            'send' => [
                'from' => 'error@server.com',
                'subject' => 'Error notification',

                //e-mails to receive notification
                'to' => ['myteam@gmail.com', 'myteam2@mail.com']
            ],

            'ignore' => [
                //ignore errors
                'error' => [
                    'E_NOTICE',
//                    'EXCEPTION_RENDER_ERROR',
//                 'EXCEPTION_DISPATCH_ERROR'
                ],

                //ignore error with code
                'code'=>[
                    '403'
                ]
            ]
        ]
    ]
];

The Versions

29/11 2016

dev-master

9999999-dev https://github.com/GMBN/LogBug.git

Logging of ZF2 exceptions and errors

  Sources   Download

MIT

The Requires

 

by Gian Nunes

logger log zf2 module bug