Closed zyofeng closed 2 years ago
It's possible, however, need to figure out how to set the configuration for enricher in appsettings.json
file.
It's the same syntax as WriteTo
; there isn't a lot of documentation, but the Serilog.Settings.Configuration sample project has a pretty complete example:
HTH, Nick
@zyofeng Sorry for the delay, please update to version 1.2.0
.
No worries, thank you!
Currently this lib uses X-forwarded-for to get client ip, however in some proxy environments i.e. Cloudflare. Ips are piped through custom http headers (CF-Connecting-IP) https://developers.cloudflare.com/fundamentals/get-started/reference/http-request-headers/
Would it be possible to make this header variable name configurable with defaults to X-forwarded-for?
Regards