Blazor how to log each BeginRequest and EndRequest

Viewed 164

At MVC there was a nice way to log information about each request. at Global.asax.cs there was two methods:

Application_BeginRequest()
Application_EndRequest()

That allowed the easy way to log information about each request and if combining them was also possible to get information about request length.

Application_Error() 

was also useful when it comes to logging globally information about errors.

Is anything similar for blazor apps? What is the best way to log each request with information about request length? How globally log each error?

0 Answers
Related