Clearing the logger context when the application has finished starting up.
Setting the logger context before processing a request and clearing it after processing a request.
Setting the logger context when the application is starting to shut down.
This filter is a once-per-request filter. It is capable of filtering all the different types of requests
(standard, asynchronous, error, etc.) but will not apply processing if the filter matches multiple times on the same