Closed Dypso closed 3 years ago
FormDataLogging
logs data posted through actual "Web Forms", i.e. via an actual "http form" , with application/x-www-form-urlencoded
or similar.
In Web API, you typically POST
contents as application/json
, so you don't actually have explicit fields/values.
So to sum up : that can work only with WebForms or MVC :)
maybe related to https://github.com/serilog-web/classic/issues/35 ?
I have used this sink along with classic-webapi and use this syntax at configuration
But when I post data to my webApi I see no any information logged ... Is that even possible ? Or does it only make sense on a ASP.Net MVC project ?