Skip to content

Commit c804ff6

Browse files
committed
updates to documentation
1 parent 6fa2fea commit c804ff6

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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+
5457
When 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

5862
The class `Dot\ErrorHandler\ErrorHandler` is the same as the Zend Expressive error handling class
5963
the 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
6266
added logging support.
6367

6468
As a note: both `LogErrorHandler` and `ErrorHandler` have factories declared in the

docs/book/v3/configuration.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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+
3133
When declaring the `ErrorHandlerInterface` alias you can choose whether to log or not:
3234

3335
- for the simple Zend Expressive handler user `ErrorHandler`

0 commit comments

Comments
 (0)