Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ErrorHandler

ZF2 Module. For handle and log errors

If enabled you can log all PHP errors\notices\warnings etc.

Installation

Add this project in your composer.json:

"require": {
    "t4web/error-handler": "~1.0.0"
}

Now tell composer to download T4web\ErrorHandler by running the command:

$ php composer.phar update

Post installation

Enabling it in your application.config.phpfile.

<?php
return array(
    'modules' => array(
        // ...
        'T4web\Log',
        'T4web\ErrorHandler',
    ),
    // ...
);

Introduction

For example, we generate some errors. In our Application\Controller\IndexController:

public function indexAction()
{
    $e = $a['i'];  // this is Notice
    asd();  // this is Fatal
    return new ViewModel();
}

If you use t4web\admin in your logs you can see: backend error handler log entries

About

ZF2 Module. For handle and log errors

Resources

Stars

0 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages