'Declaration
Public Overloads Shared Sub EndSession( _ ByVal endingStatus As SessionStatus, _ ByVal skipFrames As Integer, _ ByVal reason As String _ )
public static void EndSession( SessionStatus endingStatus, int skipFrames, string reason )
'Declaration
Public Overloads Shared Sub EndSession( _ ByVal endingStatus As SessionStatus, _ ByVal skipFrames As Integer, _ ByVal reason As String _ )
public static void EndSession( SessionStatus endingStatus, int skipFrames, string reason )
This will put the Gibraltar log into an ending state in which it will flush everything still in its queue and then switch to a background thread to process any further log messages. All log messages submitted after this call will block the submitting thread until they are committed to disk, so that any foreground thread still logging final items will be sure to get them through before they exit. This is called automatically when an ApplicationExit event is received, and can also be called directly (such as if that event would not function).
If EndSession is never called, the log will reflect that the session must have crashed.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2