Share via


CollectionSet.LoggingLevel Property

Gets or sets the logging level for the collection set.

Namespace:  Microsoft.SqlServer.Management.Collector
Assembly:  Microsoft.SqlServer.Management.Collector (in Microsoft.SqlServer.Management.Collector.dll)

Syntax

'Declaration
<SfcPropertyAttribute> _
Public Property LoggingLevel As Short
    Get
    Set
'Usage
Dim instance As CollectionSet
Dim value As Short

value = instance.LoggingLevel

instance.LoggingLevel = value
[SfcPropertyAttribute]
public short LoggingLevel { get; set; }
[SfcPropertyAttribute]
public:
property short LoggingLevel {
    short get ();
    void set (short value);
}
[<SfcPropertyAttribute>]
member LoggingLevel : int16 with get, set
function get LoggingLevel () : short
function set LoggingLevel (value : short)

Property Value

Type: System.Int16
A SmallInt value that indicates the logging level used for the collection set.

Remarks

Logging levels are described in the following table.

Level

Description

0

Logs execution information and the following SSIS events:

  • Start or stop a collection set.

  • Start or stop a package.

  • Error information.

1

The default logging level, it combines Level 0 logging and:

  • Execution statistics.

  • Continuously running collection progress.

  • Warning events from SSIS.

2

Level 1 logging and detailed SSIS events.

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.