File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,8 @@ Logging Error Handler for DotKernel
2929
3030- Configure the error handler as shown below
3131
32- configs/autoload/error-handling.global.php
32+ config/autoload/error-handling.global.php
33+
3334``` php
3435<?php
3536
@@ -51,14 +52,17 @@ return [
5152];
5253```
5354
55+ A configuration example for the default logger can be found in ` config/log.global.php.dist ` .
56+
5457When declaring the ` ErrorHandlerInterface ` alias you can choose whether to log or not:
58+
5559- for logging use ` LogErrorHandler `
5660- for the simple Zend Expressive handler user ` ErrorHandler `
5761
5862The class ` Dot\ErrorHandler\ErrorHandler ` is the same as the Zend Expressive error handling class
5963the only difference being the removal of the ` final ` statement for making extension possible.
6064
61- The class ` Dot\ErrorHandler\LogErrorHandler ` is ` Dot\ErrorHandler\ErrorHandler ` with
65+ The class ` Dot\ErrorHandler\LogErrorHandler ` is ` Dot\ErrorHandler\ErrorHandler ` with
6266added logging support.
6367
6468As a note: both ` LogErrorHandler ` and ` ErrorHandler ` have factories declared in the
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ and add `\Dot\ErrorHandler\ErrorHandlerInterface::class` (to `config/pipeline.ph
55
66- Configure the error handler as shown below
77
8- configs /autoload/error-handling.global.php
8+ config /autoload/error-handling.global.php
99
1010``` php
1111<?php
@@ -28,6 +28,8 @@ return [
2828];
2929```
3030
31+ A configuration example for the default logger can be found in ` config/log.global.php.dist ` .
32+
3133When declaring the ` ErrorHandlerInterface ` alias you can choose whether to log or not:
3234
3335- for the simple Zend Expressive handler user ` ErrorHandler `
You can’t perform that action at this time.
0 commit comments