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
149149
150150This package used https://github.com/spatie/laravel-http-logger as base for ** http request** log, as well as the code design pattern.
151151
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+
152166# License
153167
154168The 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