DPE WorkflowSystem 3.x

LogConditional

Logs a message to DPE logs if a specified condition is true.

LogConditional.png

Properties

LogConditional_Properties.png

Input

Name

Description

Message

Message written to log.

Level

Log level: Error, Warning, Info, Debug.

Category

Category, always use "Workflow".

Component

Component

Condition

Message is only written when condition evaluates to True.

Recommendation

Do not change the Category value, always use "Workflow"

Example usage

  1. Have a workflow argument Verbose initialized with False.

  2. Assign it to property Condition of each LogConditional.

  3. Logs would only be written when the worfklow argument is set to True from the caller.