Hi,
I am using MessageLogging policy in the PostClientFlow.
My requirement is to construct the message to log dynamically using JavaScript , adding it to a Variable and using that variable in the MessageLogging Policy.
Used JavaScript policy in the PostFlow.
But when I check the trace after the JavaScript policy I see the Variable valued but the same Variable is empty when it reaches the postClientFlow.
Can you let me know
Message Logging
<MessageLogging async="false" continueOnError="false" enabled="true" name="MessageLogging.LogServiceCalls">
<DisplayName>MessageLogging.LogServiceCalls</DisplayName>
<File>
<Message defaultVariableValue="unknown">{postClientFlow.messageLogging.message}</Message>
<FileName>Api.log</FileName>
<FileRotationOptions rotateFileOnStartup="true">
<FileRotationType>TIME_SIZE</FileRotationType>
<MaxFileSizeInMB>1024</MaxFileSizeInMB>
<MaxFilesToRetain>10</MaxFilesToRetain>
<!--<RotationFrequency unit="minute">600</RotationFrequency>-->
</FileRotationOptions>
</File>
<logLevel>ERROR</logLevel>
</MessageLogging>