You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ It is possible to enable logging of all or some requests conditionally using one
35
35
36
36
### Enable log via middleware (Recommended)
37
37
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:
39
39
40
40
```php
41
41
Route::middleware('requestlog')->get('/', function () {
@@ -57,7 +57,7 @@ The config file includes some convenient settings for enabling logging of all or
57
57
58
58
### Enable log via request
59
59
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:
61
61
62
62
```php
63
63
/**
@@ -76,7 +76,7 @@ public function index(Request $request)
76
76
77
77
### Unique Request UUID
78
78
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.
80
80
81
81
**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!**
0 commit comments