Logs an informational string to a synthetic TrueLog node of the virtual users TrueLog file. You can specify the name of the TrueLog node with the sNodeName parameter. When the node is selected in TrueLog Explorer, the informational string is analyzed and TrueLog Explorer automatically chooses the rendering method for the informational string. For example: When passing XML data to the function, TrueLog Explorer will use the XML view to display the string.
The informational string is used for logging to the TrueLog, like the print or write functions. It is especially useful for debugging and visualization purposes.
kernel.bdh
TrueLogInfo( in sInfo : string, in sNodeName : string optional ): boolean;
true if successful
false otherwise
Parameter | Description |
---|---|
sInfo | Informational string displayed by TrueLog Explorer |
sNodeName | The name of the node in the TrueLog Explorer tree |
benchmark SilkPerformerRecorder use "WebAPI.bdh" dcluser user VUser transactions TMain : 1; dcltrans transaction TMain var sData: string; begin TrueLogInfo("some information"); TrueLogInfo("some more information", "more information"); TrueLogInfo("<Object>" "<Array>" "<Integer>1</Integer>" "<Integer>2</Integer>" "<Integer>3</Integer>" "<Integer>4</Integer>" "</Array>" "</Object>", "xml data"); WebParseDataBoundEx(sData); WebPageUrl("http://demo.borland.com/"); TrueLogInfo(sData, "html data"); end TMain;