File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -149,6 +149,20 @@ This is content of config file
149
149
150
150
This package used https://github.com/spatie/laravel-http-logger as base for ** http request** log, as well as the code design pattern.
151
151
152
+ We could receive tons of access in a real life production application.
153
+
154
+ In order to ease for analyze, a unique string is embedded into ** http request** and ** performance** log to indicate both log entries are related.
155
+
156
+ ``` bash
157
+ # Http request, unique: 2725ffb10adeae3f
158
+ [2021-01-10 23:35:25] local.INFO: 2725ffb10adeae3f GET /path - Body ...
159
+
160
+ # Performance, unique: 2725ffb10adeae3f
161
+ [2021-01-10 23:35:27] local.INFO: 2725ffb10adeae3f GET /path - Time: 55 - Memory: 5
162
+ ```
163
+
164
+ If you found any high memory usage or slow requests you could easily grep request log by the unique string for more information.
165
+
152
166
# License
153
167
154
168
The Laravel Application Logger is open-sourced software licensed under the [ MIT license] ( LICENSE )
You can’t perform that action at this time.
0 commit comments