fixed Zend\Log\Logger::registerErrorHandler() doesn't log previous exceptions #3604

Closed
wants to merge 1 commit into
from

Projects

None yet

2 participants

Member

This PR logs each exception as a single message of a list of exceptions structured as previous exceptions.

Additions:

  • Map severity of instances of ErrorException into a priority like the error handler does
  • added the first test for the exceptions handler

Info for merging into 2.1:
The internal array $errorPriorityMap should be replaced with the static Logger::$errorPriorityMap

@weierophinney weierophinney added a commit that referenced this pull request Jan 29, 2013
@weierophinney weierophinney [#3604] CS and logic cleanup
- Extract common error priority map to static property
- Use descriptive names instead of abbreviations
3b0b5dd
@weierophinney weierophinney added a commit that referenced this pull request Jan 29, 2013
@weierophinney weierophinney Merge branch 'hotfix/3604' into develop
Forward port #3604

Conflicts:
	library/Zend/Log/Logger.php
	tests/ZendTest/Log/LoggerTest.php
ca1b933
@weierophinney weierophinney added a commit to zendframework/zend-log that referenced this pull request May 15, 2015
@weierophinney weierophinney [zendframework/zendframework#3604] CS and logic cleanup
- Extract common error priority map to static property
- Use descriptive names instead of abbreviations
c41da22
@weierophinney weierophinney added a commit to zendframework/zend-log that referenced this pull request May 15, 2015
@weierophinney weierophinney Merge branch 'hotfix/3604' abc6eec
@weierophinney weierophinney added a commit to zendframework/zend-log that referenced this pull request May 15, 2015
@weierophinney weierophinney Merge branch 'hotfix/3604' into develop
Forward port zendframework/zendframework#3604

Conflicts:
	library/Zend/Log/Logger.php
	tests/ZendTest/Log/LoggerTest.php
a1ebe93
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment