Skip to content

Commit 47ae85e

Browse files
authored
Update README.md
Clearify wording in README.md
1 parent 719cad1 commit 47ae85e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ It is possible to enable logging of all or some requests conditionally using one
3535

3636
### Enable log via middleware (Recommended)
3737

38-
This package comes with a convenient `requestlog` middleware that can be used to enable logging of request by simply register the middleware on the routes (or route groups) you wish to log:
38+
This package comes with a convenient `requestlog` middleware that can be used to enable logging of request by simply registering the middleware on the routes (or route groups) you wish to log:
3939

4040
```php
4141
Route::middleware('requestlog')->get('/', function () {
@@ -57,7 +57,7 @@ The config file includes some convenient settings for enabling logging of all or
5757

5858
### Enable log via request
5959

60-
This package adds a macro on the `Request` class making it possible to enable logging directly from the request:
60+
This package adds a macro on the `Illuminate\Http\Request` class making it possible to enable logging directly from the request:
6161

6262
```php
6363
/**
@@ -76,7 +76,7 @@ public function index(Request $request)
7676

7777
### Unique Request UUID
7878

79-
This package adds a macro `getUniqueId()` for the `Request` which generates a unique request UUID that will be saved to the logs and that can be included as [Global Log Context](https://laravel.com/docs/8.x/logging#contextual-information) which will pass it onto any application logging or error reporting. This id will per default also be added as a custom response header.
79+
This package adds a macro `getUniqueId()` for the `Illuminate\Http\Request` class which generates a unique request UUID that will be saved to the logs and that can be included as [Global Log Context](https://laravel.com/docs/8.x/logging#contextual-information) which will pass it onto any application logging or error reporting. This id will per default also be added as a custom response header.
8080

8181
**This is an extremely helpful trick when debugging customer requests as both customer, application logs, reported errors and request logs (this package) now all include a single common UUID!**
8282

0 commit comments

Comments
 (0)