Share this page

# TCA.log

Logs a message as a line in the interactive/load log.

    TCA.log(text, level);

## Arguments

Name | Description
--- | ---
text | (any) The log message.
level (Optional) | (string) Defines the log level. Possible values: Error Warning Standard (default) Extended Status. Sends a string to the Status area of the Controller. It also sends the string to the Vuser log. When run from VuGen, the message is sent to output.txt. Status_msg

## Return value

A promise that will be fulfilled with no arguments.

## Example

Copy code

    TCA.log("my warning", "Warning").then(function(){
      TCA.done();
    }).catch(function (error) {
      TCA.doneWithError(error);
    });

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