Logging from your Orchestration

You can write an entry to the trace log from the orchestration process. The WriteLog activity provides the ability to log additional customized messages to debug an orchestration. When running the application in Visual Studio, WriteLog also writes to the output pane of Visual Studio. The log entry contains a timestamp and session Id in addition to the text specified.

To log the messages from orchestration:

  1. Drag the WriteLog activity from the Toolbox to the Start or Catch activity.

  2. In the Properties window, do the following:

    1. Select the runtime log level to be used to write a message from the LogLevel list.

    2. In the LogMessage field, click .

      The Assign Data for Message dialog box appears. The value for this property must be a string.

    3. Make the required changes and click OK. Refer to Assign Data for Message Dialog Box for details.