2017 © Pedro Peláez
 

library handlers

The error and exception handlers of AloFramework

image

aloframework/handlers

The error and exception handlers of AloFramework

  • Monday, November 7, 2016
  • by Alorel
  • Repository
  • 1 Watchers
  • 0 Stars
  • 215 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 26 Versions
  • 0 % Grown

The README.md

AloFramework | Handlers

A powerful error and exception handler of AloFramework. It can automatically log errors and exceptions if an object implementing the \Psr\Log\LoggerInterface is passed on and will echo output based on your server's error reporting settings, altering its format depending on whether an error is raised during a HTTP or CLI call., (*1)

Latest release API documentation: https://aloframework.github.io/handlers/, (*2)

License Latest Stable Version Total Downloads, (*3)

dev-develop Latest release
Dev Build Status Release Build Status
Coverage Status Coverage Status

Installation

Installation is available via Composer:, (*4)

composer require aloframework/handlers

Usage

  • To enable the exception handler call \AloFramework\Handlers\ExceptionHandler::register()
  • To enable the error handler call \AloFramework\Handlers\ErrorHandler::register()
  • To enable the shutdown handler call \AloFramework\Handlers\ShutdownHandler::register()

Logging

Every error and exception has to be logged in this package. You can supply your own logger to have more control; if you don't, aloframework/log will be used with its default settings., (*5)

Configuration

Configuration is done via the classes in the AloFramework\Handlers\Config namespace., (*6)

Common

  • CFG_CSS_PATH - path to the CSS file which will style the HTML output. Defaults to error.min.css in the src directory.
  • CFG_TRACE_MAX_DEPTH - maximum number of debug backtrace items to display [50]
  • CFG_BACKGROUND - CLI output background colour [default]
  • CFG_FOREGROUND_NOTICE - CLI output notice level foreground colour [cyan]
  • CFG_FOREGROUND_WARNING - CLI output warning level foreground colour [yellow]
  • CFG_FOREGROUND_ERROR - CLI output error/exception level foreground colour [red]
  • CFG_FORCE_HTML - Whether to force HTML output even in CLI mode [false]

Error Handlers' Config

  • CFG_ERROR_LEVEL - Which error levels to handle. Defaults to the value of error_reporting().
  • CFG_LOG_ERROR_LOCATION - Whether to include the error location in the log [true]

Exception Handlers' Config

  • CFG_EXCEPTION_DEPTH - Maximum number previous exceptions to output in the exception handler [10]
  • CFG_LOG_EXCEPTION_LOCATION Whether to include the exception location in the log [true]

The Versions

07/11 2016

dev-master

9999999-dev https://github.com/aloframework/handlers

The error and exception handlers of AloFramework

  Sources   Download

Apache-2.0

The Requires

 

php exception error configurable handler shutdown

07/11 2016

dev-develop

dev-develop https://github.com/aloframework/handlers

The error and exception handlers of AloFramework

  Sources   Download

Apache-2.0

The Requires

 

php exception error configurable handler shutdown

07/11 2016

3.0

3.0.0.0 https://github.com/aloframework/handlers

The error and exception handlers of AloFramework

  Sources   Download

Apache-2.0

The Requires

 

php exception error configurable handler shutdown

08/02 2016

2.0.4

2.0.4.0 https://github.com/aloframework/handlers

The error and exception handlers of AloFramework

  Sources   Download

GPL-3.0+

The Requires

 

php exception error configurable handler shutdown

14/01 2016

2.0.3

2.0.3.0 https://github.com/aloframework/handlers

The error and exception handlers of AloFramework

  Sources   Download

GPL-3.0+

The Requires

 

php exception error configurable handler shutdown

13/01 2016

2.0.2

2.0.2.0 https://github.com/aloframework/handlers

The error and exception handlers of AloFramework

  Sources   Download

GPL-3.0+

The Requires

 

php exception error configurable handler shutdown

04/11 2015

2.0.1

2.0.1.0 https://github.com/aloframework/handlers

The error and exception handlers of AloFramework

  Sources   Download

GPL-3.0+

The Requires

 

php exception error configurable handler 5.4 shutdown

24/10 2015

2.0

2.0.0.0 https://github.com/aloframework/handlers

The error and exception handlers of AloFramework

  Sources   Download

GPL-3.0+

The Requires

 

php exception error configurable handler 5.4 shutdown

20/10 2015

2.0-beta.1

2.0.0.0-beta1 https://github.com/aloframework/handlers

The error and exception handlers of AloFramework

  Sources   Download

GPL-3.0+

The Requires

 

php exception error configurable handler 5.4 shutdown

13/10 2015

1.4.1

1.4.1.0 https://github.com/aloframework/handlers

The error and exception handlers of AloFramework

  Sources   Download

GPL-3.0+

The Requires

 

php exception error configurable handler 5.4

12/10 2015

1.4

1.4.0.0 https://github.com/aloframework/handlers

The error and exception handlers of AloFramework

  Sources   Download

GPL-3.0+

The Requires

 

php exception error configurable handler 5.4

03/10 2015

1.3

1.3.0.0 https://github.com/aloframework/handlers

The error and exception handlers of AloFramework

  Sources   Download

GPL-3.0+

The Requires

 

php exception error configurable handler 5.4

28/09 2015

1.2.1

1.2.1.0 https://github.com/aloframework/handlers

The error and exception handlers of AloFramework

  Sources   Download

GPL-3.0+

The Requires

 

php exception error configurable handler 5.4

26/09 2015

1.2

1.2.0.0 https://github.com/aloframework/handlers

The error and exception handlers of AloFramework

  Sources   Download

GPL-3.0+

The Requires

 

php exception error configurable handler 5.4

24/09 2015

1.1.2

1.1.2.0 https://github.com/aloframework/handlers

The error and exception handlers of AloFramework

  Sources   Download

GPL-3.0+

The Requires

 

php exception error configurable handler 5.4

24/09 2015

1.1.1

1.1.1.0 https://github.com/aloframework/handlers

The error and exception handlers of AloFramework

  Sources   Download

GPL-3.0+

The Requires

 

php exception error configurable handler 5.4

24/09 2015

1.1

1.1.0.0 https://github.com/aloframework/handlers

The error and exception handlers of AloFramework

  Sources   Download

GPL-3.0+

The Requires

 

php exception error configurable handler 5.4

21/09 2015

1.0.5

1.0.5.0 https://github.com/aloframework/handlers

The error and exception handlers of AloFramework

  Sources   Download

GPL-3.0+

The Requires

 

php exception error configurable handler 5.4

21/09 2015

1.0.4

1.0.4.0 https://github.com/aloframework/handlers

The error and exception handlers of AloFramework

  Sources   Download

GPL-3.0+

The Requires

 

php exception error configurable handler 5.4

20/09 2015

1.0.3

1.0.3.0 https://github.com/aloframework/handlers

The error and exception handlers of AloFramework

  Sources   Download

GPL-3.0+

The Requires

 

php exception error configurable handler 5.4

20/09 2015

1.0.2

1.0.2.0 https://github.com/aloframework/handlers

The error and exception handlers of AloFramework

  Sources   Download

GPL-3.0+

The Requires

 

php exception error configurable handler 5.4

20/09 2015

1.0.1

1.0.1.0 https://github.com/aloframework/handlers

The error and exception handlers of AloFramework

  Sources   Download

GPL-3.0+

The Requires

 

php exception error configurable handler 5.4

20/09 2015

1.0

1.0.0.0 https://github.com/aloframework/handlers

The error and exception handlers of AloFramework

  Sources   Download

GPL-3.0+

The Requires

 

php exception error configurable handler 5.4

20/09 2015

0.2

0.2.0.0 https://github.com/aloframework/handlers

The error and exception handlers of AloFramework

  Sources   Download

GPL-3.0+

The Requires

 

php exception error configurable handler 5.4

20/09 2015

0.1.1

0.1.1.0 https://github.com/aloframework/handlers

The error and exception handlers of AloFramework

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

php exception error configurable handler 5.4

19/09 2015

0.1

0.1.0.0 https://github.com/aloframework/handlers

The error and exception handlers of AloFramework

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

framework php mvc lightweight 5.4