Properties, such as MVC-specific features like the action method ID, RazorPages Handler name, or the ModelValidationState are only available in an MVC context, so can't be directly accessed by Serilog's middleware. In this post, I show how you can create action/page filters to record these properties for you, which the middleware can access later when creating the log.

Bharat Dwarkani shared on Jan 17, 2020
image
andrewlock.net
bookmarks
share
visibility25
visibility25 share bookmarks
add