Filters in ASP.NET Core allow code to be run before or after specific stages in the request processing pipeline.
Built-in filters handle tasks such as:
More about Action Filters here
We will create ActionFilter that will log simple message.
Then register it globally.
context object contains information about used controller, so you can build conditionals for your filters.