Writing Messages to the Collector Log File for Debugging Purposes
If you want to include debugging messages after certain parts of your formula execute, you can you can use the LogMessage function when creating a formula in the Calculation pane. The syntax of this function is as follows:
LogMessage(message_string)
where message_string
is the message that you want to appear in the log file for the Calculation or Server-to-Server Collector. If the message_string
is not a string variable, use double quotes around the text for message_string
value. For instance, a properly formatted text string with double quotes would appear like this:
LogMessage("This is a message")
Note: The
LogMessage
function does not appear in the wizard.