Closed pawan-regoti closed 1 year ago
as of now, there is no way to specify the property name for WithRequestHeader extension. it can be easily implemented using code changes in this pull request
WithRequestHeader
{ "Serilog": { "MinimumLevel": "Debug", "Using": [ "Serilog.Enrichers.ClientInfo" ], "Enrich": [ { "Name": "WithRequestHeader", "Args": { "headerName": "Content-Length", "propertyName": "RequestLength" } } ], }
@pawan-regoti Thanks for the PR, I'll review and merge it soon.
as of now, there is no way to specify the property name for
WithRequestHeader
extension. it can be easily implemented using code changes in this pull request