I have custom Web API been hosted and exposed. I want to know how to get details like who accessed my Web API, time of accessing,etc. In short I just want to know my Web API usage history. Can it be possible? If so, can you please help me in this context for where to look and so?
Thanks
You can use System.Net.Http.DelegatingHandler to accomplish logging. As a start, have a look at the following blogs:
Log message Request and Response in ASP.NET WebAPI.
ASP.NET Web Api–Request/Response/Usage Logging
and this for an alternative using an
ActionFilter
Implementing Audit Trails using ASP.NET MVC ActionFilters