StartLoggingXMLMsgs Method
- Last UpdatedNov 06, 2025
- 1 minute read
The StartLoggingXMLMsgs() method starts a message logging session. This logs all XML commands sent to the Middleware through the ClientSession object's SendXMLCmd() methods.
'Declaration
Public Sub StartLoggingXMLMsgs( _
ByVal completeFilePath As String, _
ByVal durationInSeconds As Integer, _
ByVal alsoLogResponses As Boolean _
)
public void StartLoggingXMLMsgs(
string completeFilePath,
int durationInSeconds,
bool alsoLogResponses
)
Parameters
- completeFilePath
- Required. Holds the complete file path for the log file (for example, @"C:\TestFile.XML" to take care of "\" chars).
- durationInSeconds
- Required. Holds the integer that specifies after how many seconds the logging should automatically terminate. Max = 3600, which = 1 hour.
- alsoLogResponses
- Required. Holds a flag that, if set to true, causes the message responses to also be logged. This can be useful for diagnostics.