ASP.NET endpoint logging
I am building an ASP.NET api. I want to log info about who is accessing my API and how. I want to log the IP address of the user, the end point they called and the parameters they passed ind and the current time.
I've done some research on this already and found Serilog, adding it to my middleware
But this logs everything, I need to log less. For one thing, one of my endpoints is a login and i don't want to store passwords in the logs. For another this system logs stuff that isn't and API calls.
here's a snippet of what it captures:
I've done some research on this already and found Serilog, adding it to my middleware
But this logs everything, I need to log less. For one thing, one of my endpoints is a login and i don't want to store passwords in the logs. For another this system logs stuff that isn't and API calls.
here's a snippet of what it captures: