Utility Functions and C Language Reference > Utility Functions: .NET (lr.) > Alphabetical Listing > lr.log

lr.log

Sends a message to the log file.

C#

void lr.log ( string message );

VB.NET

Sub lr.log ( ByVal message As String )  
Example: lr.log Message Functions

Arguments

Name Comments
message The string to send to the log.

The lr.log function sends a message to the log file and not to the output window. Use this function instead of lr.message to conserve the network resources required for sending messages to the output.

This function is identical to lr.log_message, except it inserts a quotation mark at the beginning of the string, enabling VuGen to display it in green in the output window.

In the Vuser Execution log, this function does not list the location and line number from where the message was issued. To issue a message with those details, use lr.output_message.

statement

Output

lr.log("a message") "a message"
lr.output_message("a message"); Action(4): a message

Return Values

No value returned.

Parameterization

All input arguments can be parameterized using standard parameterization.