Skip to content

Commit 48add3c

Browse files
authored
Updated README.md
1 parent b4f0cdf commit 48add3c

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
11
# laravel-xlog
22
Extended Laravel Log Component
3-
XLog adds `User ID`, `User IP`, and `unique Track ID` to each log
3+
XLog adds `User ID`, `User IP`, and `unique Track ID` to each log in a PHP lifecycle.
4+
So you can fetch all logs that are submitted through a Laravel request lifecycle (from beginning to end).
45

6+
You can fetch all logs using the tail command. For example if your unique track id was `523586093e` then you can use it like below:
7+
8+
```
9+
cat laravel.log | grep 523586093e
10+
```
11+
output:
12+
13+
```
14+
[2024-06-26 00:36:12] production.DEBUG: AsanpardakhtController::token_request {"servicetypeid":1,"merchantconfigurationid":38718596,"localinvoiceid":17193495725213,"amountinrials":6980000,"localdate":"20240626 003612","callbackurl":"https://shop.test/payment/gateway-transactions/pqj5nm/callback","paymentid":0,"additionaldata":null,"settlementportions":[{"iban":"IR600780100710844707074710","amountInRials":6980000,"paymentId":0}],"sid":"","uip":"31.14.119.2","uid":"user","xTrackId":"523586093e"}
15+
[2024-06-26 00:36:13] production.INFO: AsanpardakhtController::token_response hd764QZna1fl1ALEwjoA: 200 {"sid":"","uip":"31.14.119.2","uid":"user","xTrackId":"523586093e"}
16+
```
517
## Installation
618

719
```bash

0 commit comments

Comments
 (0)