LogProviderBase.CloseLog Method
Called at the end of package execution.
Namespace: Microsoft.SqlServer.Dts.Runtime
Assembly: Microsoft.SqlServer.ManagedDTS (in Microsoft.SqlServer.ManagedDTS.dll)
The following code example demonstrates an implementation of CloseLog, which closes the file stream opened during the OpenLog method.
public override void CloseLog() { if (sw != null) { sw.WriteLine("Close log" + System.DateTime.Now.ToShortTimeString()); sw.Close(); } }
For more information about the variables used in this example, see the OpenLog method.