Udostępnij za pośrednictwem


Package.LogProviders Property

Definition

Gets the collection of log providers associated with the package.

public:
 property Microsoft::SqlServer::Dts::Runtime::LogProviders ^ LogProviders { Microsoft::SqlServer::Dts::Runtime::LogProviders ^ get(); };
public Microsoft.SqlServer.Dts.Runtime.LogProviders LogProviders { get; }
member this.LogProviders : Microsoft.SqlServer.Dts.Runtime.LogProviders
Public ReadOnly Property LogProviders As LogProviders

Property Value

The collection of log providers associated with the package.

Examples

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");  
Dim pkg As Package =  New Package()   
' Add a log provider to the package.  
Dim logProvs As LogProvider =  pkg.LogProviders.Add("DTS.LogProvider.XMLFile.1")  

Remarks

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.

Applies to