WithSourceIPs returns a Logger that has information about the source IPs in its details.
(sourceIPs string, l log.Logger)
| 60 | // WithSourceIPs returns a Logger that has information about the source IPs in |
| 61 | // its details. |
| 62 | func WithSourceIPs(sourceIPs string, l log.Logger) log.Logger { |
| 63 | return log.With(l, "sourceIPs", sourceIPs) |
| 64 | } |
| 65 | |
| 66 | // HeadersFromContext enables the logging of specified HTTP Headers that have been added to a context |
| 67 | func HeadersFromContext(ctx context.Context, l log.Logger) log.Logger { |