Export (0) Print
Expand All

Package.LogProviders Property


Applies To: SQL Server 2016 Preview

Gets the collection of log providers associated with the package.

Namespace:   Microsoft.SqlServer.Dts.Runtime
Assembly:  Microsoft.SqlServer.ManagedDTS (in Microsoft.SqlServer.ManagedDTS.dll)

public LogProviders LogProviders { get; }

Property Value

Type: Microsoft.SqlServer.Dts.Runtime.LogProviders

The collection of log providers associated with the package.

For more information about log providers, see Integration Services (SSIS) Logging. For more information about using log providers in the graphical user interface, see Integration Services (SSIS) Logging.

Legacy Code Example

The following code sample shows how to add the XML File log provider to the log provider collection in the package.

Package pkg = new Package();
// Add a log provider to the package.
LogProvider logProvs = pkg.LogProviders.Add("DTS.LogProvider.XMLFile.1");
Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft