Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
18 | public function logRequest(Request $request): void |
||
19 | { |
||
20 | $method = strtoupper($request->getMethod()); |
||
21 | $uri = $request->getPathInfo(); |
||
22 | $bodyAsJson = json_encode($request->except(config('http-logger.except'))); |
||
23 | |||
24 | $message = "{$method} {$uri} - {$bodyAsJson}"; |
||
25 | |||
26 | Log::info($message); |
||
27 | } |
||
28 | } |
||
29 |