Share this page

# lr.log

Sends a message to the log file of the Vuser.

## JavaScript

    function lr.log (  message  )

## VBScript

    Sub lr.log (  message  )

Message Functions

## Arguments

Name | Comments
--- | ---
message | A string containing the message to send to the log.

The lr.log function sends a message to the log file, and not to the Controller 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("message") | Action(4): a message

## Return Values

No value returned.

## Parameterization

Standard parameterization is not available for this function.

## Example

In the following example, the lr.log function sends a message including an integer to the log files.

Copy code

    Dim ip as Integer
        Randomize
        ip = 1000 * Rnd
        lr.log "The IP address is " + Cstr(ip)

    Example: The output includes a leading quote mark:
    "The IP address is 461

Tips to improve your search results... VuGen Function Reference Version 26.1-26.3 Function Reference 26.1-26.3 All View Local Help Center View Online Help Center Version: