Log middleware logs http requests
| 21 | |
| 22 | // Log middleware logs http requests |
| 23 | type Log struct { |
| 24 | Log log.Logger |
| 25 | DisableRequestSuccessLog bool |
| 26 | LogRequestHeaders bool // LogRequestHeaders true -> dump http headers at debug log level |
| 27 | LogRequestAtInfoLevel bool // LogRequestAtInfoLevel true -> log requests at info log level |
| 28 | SourceIPs *SourceIPExtractor |
| 29 | HTTPHeadersToExclude map[string]bool |
| 30 | } |
| 31 | |
| 32 | var AlwaysExcludedHeaders = map[string]bool{ |
| 33 | "Cookie": true, |
nothing calls this directly
no outgoing calls
no test coverage detected