1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?php
- return [
- /*
- * The log profile which determines whether a request should be logged.
- * It should implement `LogProfile`.
- */
- 'log_profile' => \Spatie\HttpLogger\LogNonGetRequests::class,
- /*
- * The log writer used to write the request to a log.
- * It should implement `LogWriter`.
- */
- // 'log_writer' => \Spatie\HttpLogger\DefaultLogWriter::class,
- 'log_writer' => \App\Logging\CustomLogWriter::class,
- /*
- * The log channel used to write the request.
- */
- // 'log_channel' => env('LOG_CHANNEL', 'stack'),
- 'log_channel' => 'http_logger',
- /*
- * The log level used to log the request.
- */
- 'log_level' => 'info',
- /*
- * Filter out body fields which will never be logged.
- */
- 'except' => [
- // 'password',
- // 'password_confirmation',
- 'idcard_front',
- 'idcard_back',
- 'user_with_idcard',
- ],
- /*
- * List of headers that will be sanitized. For example Authorization, Cookie, Set-Cookie...
- */
- 'sanitize_headers' => [],
- ];
|