c# - how do i log full http request using log4net -


i want able log full http request values every error message log. current conversion pattern have looks -

<conversionpattern value="%date{g} [%thread] %-5level           [%aspnet-request{auth_user}] [%aspnet-request{remote_addr}]             %newline%message%newline            all_raw::%aspnet-request{all_raw}            %newline%newline%newline" /> 

which gives me output follows

06/19/2015 11:56:02 [60] info  [user@email.com] [mo-machine] message :: boommmm all_raw :: cache-control: no-cache connection: keep-alive content-length: 0 content-type: text/plain;charset=utf-8 accept: */* accept-encoding: gzip, deflate accept-language: en-us,en;q=0.8 host: localhost:43899 user-agent: mozilla/5.0 (windows nt 6.3; wow64) applewebkit/537.36 (khtml, gecko) chrome/43.0.2357.124 safari/537.36 csp: active origin: chrome-extension://fhbjghcddcbncdddomop postman-token: 38f023c1-3298-5726-e43f-650bab852cf2  url :: post localhost:43899 /controller/test internalid=10124&mid=0921&detail&orgid=14347 

i still missing post body, how raw post body in log well? there better way , log whole http request parameters , body posted logged correctly?


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -