I want to log response http status code in filters? I have an action filter and an exception filter. I can log 500 responses in the exception filter. however the response object I get in the action filter is always 200 because at that time the response body is not written into.
I thought about using middleware however I cannot seem to get the Controller name and Action name in the middleware. Any suggestions?