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
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
One thought on “SSIS: Design Tip to Cascade Logging”