-
- Téléchargements
#6622 Logger refactoring: Separated error and exception handling from logging
- the error handler logs warnings and notices, and turns errors into exceptions (`ErrorException`) - the exception handler catches all uncatched exceptions and display them to the user (HTML or CLI) - the "screen" logging backend has been removed - I've normalized exceptions/errors shown to the user in HTML (wether they are catched by the FrontController or not)
parent
af921f72
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Affichage de
- config/global.php 5 ajouts, 24 suppressionsconfig/global.php
- console 7 ajouts, 0 suppressionconsole
- core/Error.php 36 ajouts, 7 suppressionscore/Error.php
- core/Exception/ErrorException.php 16 ajouts, 0 suppressioncore/Exception/ErrorException.php
- core/ExceptionHandler.php 77 ajouts, 3 suppressionscore/ExceptionHandler.php
- core/FrontController.php 0 ajout, 45 suppressionscore/FrontController.php
- core/Log/Formatter/ExceptionHtmlFormatter.php 0 ajout, 65 suppressionscore/Log/Formatter/ExceptionHtmlFormatter.php
- core/Log/Formatter/Formatter.php 0 ajout, 60 suppressionscore/Log/Formatter/Formatter.php
- core/Log/Formatter/LineMessageFormatter.php 13 ajouts, 2 suppressionscore/Log/Formatter/LineMessageFormatter.php
- core/Log/Handler/StdErrHandler.php 0 ajout, 56 suppressionscore/Log/Handler/StdErrHandler.php
- core/dispatch.php 1 ajout, 5 suppressionscore/dispatch.php
- tests/PHPUnit/Integration/LogTest.php 5 ajouts, 73 suppressionstests/PHPUnit/Integration/LogTest.php
- tests/PHPUnit/Unit/Log/Formatter/LineMessageFormatterTest.php 5 ajouts, 0 suppression...s/PHPUnit/Unit/Log/Formatter/LineMessageFormatterTest.php
- tests/PHPUnit/Unit/Log/Processor/ClassNameProcessorTest.php 1 ajout, 0 suppressiontests/PHPUnit/Unit/Log/Processor/ClassNameProcessorTest.php
- tests/PHPUnit/Unit/Log/Processor/ExceptionToTextProcessorTest.php 3 ajouts, 1 suppression...PUnit/Unit/Log/Processor/ExceptionToTextProcessorTest.php
- tests/PHPUnit/Unit/Log/Processor/RequestIdProcessorTest.php 1 ajout, 0 suppressiontests/PHPUnit/Unit/Log/Processor/RequestIdProcessorTest.php
- tests/PHPUnit/Unit/Log/Processor/SprintfProcessorTest.php 1 ajout, 0 suppressiontests/PHPUnit/Unit/Log/Processor/SprintfProcessorTest.php
core/Exception/ErrorException.php
0 → 100644
core/Log/Formatter/Formatter.php
supprimé
100644 → 0
core/Log/Handler/StdErrHandler.php
supprimé
100644 → 0
Veuillez vous inscrire ou vous se connecter pour commenter