Last post Nov 29, 2014 10:29 AM by Ken Tucker
Nov 28, 2014 10:54 PM|deepsmehta|LINK
I have build ASP.Net web API that is being consumed by an iPad App. The iPad app sends request in JSON format. We need to log each and every JSON request in some file or database. Can somebody please help me, how can I do that for my whole set of APIs?
We want to see what exact JSON data was sent in every request.
Nov 29, 2014 01:30 AM|damienBod|LINK
Use a Global MessageHandler for this.
If you want the log absolute everything, you can use OWIN Middleware.
Use OUT-OF-PROCESS logging for this as you do not want to add extra delays in writing the logs. If your writing lots and lots of logs, you should consider using Elasticsearch for persistent and not a SQL. Enterprise Library Semantic logging will work well
OUT-OF-PROCESS Serilog would also work good, but it is not free.
Nov 29, 2014 10:29 AM|Ken Tucker|LINK
Maybe this will help