We use Global.aspx.cs to log all kind error as:
void Application_Error(object sender, EventArgs e)
{
var _logger = LogManager.GetCurrentClassLogger();
var ex = HttpContext.Current.Server.GetLastError();
_logger.Fatal(ex, $"{ex?.Message}");
}
Posted On:
12-Jun-2020 22:42