SSIS: Design Tip to Cascade Logging

An easy way to completely enable/disable SSIS Logging would be to set the LoggingMode property of the package using a Package Variable or Parent Package variable. LoggingMode takes the following enumerated values:

  • Enabled=1
  • Disabled=2
  • UseParentSetting=0

Screen Capture 1 – LoggingMode of Package

After configuring the Log Provider and the events to trace for the package, set the LoggingMode property of the Control Flow components to UseParentSetting. In fact, this is the default setting of LoggingMode for any new component added to the Control Flow

Screen Capture 2 - LoggingMode of Control Flow Components.Screen Capture 2 – LoggingMode of Control Flow Components

In this way, if the Package level LoggingMode is toggled between enabled and disabled, it automatically cascades to all control flow components. If the variable is supplied by a Parent Package Variable then the logging behavior would cascade to all packages executed by the master package.

Related links:
Making the Most of sysssislog
 

Benny Austin

One thought on “SSIS: Design Tip to Cascade Logging

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s