Raw exception logger for nonASP.NET applications? (ELMAH for console applications)

Is there an object similar to ELMAH, but for applications without ASP? One that will handle all unhandled exceptions and write them to multiple sources?

Or is there a way to easily catch all unhandled exceptions similar to Application_Error in the ASP.NET Global.asax.cs file? If this can be done, I can simply use NLog or similar to register them. It was just hoped that there was a structure similar to ELMAH.

+3
source share

Source: https://habr.com/ru/post/1720617/


All Articles