http-logger.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. return [
  3. /*
  4. * The log profile which determines whether a request should be logged.
  5. * It should implement `LogProfile`.
  6. */
  7. 'log_profile' => \Spatie\HttpLogger\LogNonGetRequests::class,
  8. /*
  9. * The log writer used to write the request to a log.
  10. * It should implement `LogWriter`.
  11. */
  12. // 'log_writer' => \Spatie\HttpLogger\DefaultLogWriter::class,
  13. 'log_writer' => \App\Logging\CustomLogWriter::class,
  14. /*
  15. * The log channel used to write the request.
  16. */
  17. // 'log_channel' => env('LOG_CHANNEL', 'stack'),
  18. 'log_channel' => 'http_logger',
  19. /*
  20. * The log level used to log the request.
  21. */
  22. 'log_level' => 'info',
  23. /*
  24. * Filter out body fields which will never be logged.
  25. */
  26. 'except' => [
  27. // 'password',
  28. // 'password_confirmation',
  29. 'idcard_front',
  30. 'idcard_back',
  31. 'user_with_idcard',
  32. ],
  33. /*
  34. * List of headers that will be sanitized. For example Authorization, Cookie, Set-Cookie...
  35. */
  36. 'sanitize_headers' => [],
  37. ];