StrataFrame Forum

Exception Logging

http://forum.strataframe.net/Topic6044.aspx

By Keith Courneyea - 1/22/2007

Options to log exceptions

  • To a table
  • To a file
  • To the event log
  • Also to any of the above, with an associated email.

Keith

By Trent L. Taylor - 1/22/2007

You can do this yourself and is in fact what we do in our medical system.  If we log it to a table, you may want to add additional information and us doing this would force you to follow our structure.  Just add your code to the UnhandledExceptionFound event in the Appmain.vb or program.cs file.  We even take a screen shot so we can see what is going on.  StrataFrame has a class that allows you to take screen shots:

MicroFour.StrataFrame.Tools.ScreenCapture.CaptureScreen().Save("c:\MyScreen.jpg", System.Drawing.Imaging.ImageFormat.Jpeg)

This is not the first time this has been requested and we have started to implement this several times.  The problem is that most people want different types of information aside from the expcetion to be saved.  So for now, you at least have a solution. 

By Greg McGuffey - 1/22/2007

Has anyone used the MS logging application block (from the Enterprise Library for .NET) with SF? How does it work?
By Keith Courneyea - 1/22/2007

Thanks Trent, that'll work just fine.
By Trent L. Taylor - 1/22/2007

Glad to help Smile