We are using Elmah extensively to log exceptions as xml files in our applications. These errors are logged on a shared network drive. This network drive has gone down several times in the past in the production(Please see below). How would Elmah behave in this case? Is there a fallback mechanism that we can use to tell Elmah to not log the error if the network drive is down?
System.IO.IOException: The device does not recognize the command.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj)
at System.IO.Directory.CreateDirectory(String path)
at Elmah.XmlFileErrorLog.Log(Error error) in C:\Elmah\XmlFileErrorLog.cs:line 137
at Realpage.Portals.Leasing.UI.MVC.MvcApplication.ErrorLog_Filtering(Object sender, ExceptionFilterEventArgs e) in c:\test\Global.asax.cs:line 154
Aucun commentaire:
Enregistrer un commentaire