Skip to content

Commit dd50a05

Browse files
committed
Updated readme
1 parent 9011f66 commit dd50a05

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,20 @@ This is content of config file
149149

150150
This 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

154168
The Laravel Application Logger is open-sourced software licensed under the [MIT license](LICENSE)

0 commit comments

Comments
 (0)