TC.setLogLevel
Enables you to change the log level during script replay.
To restore the initial log level setting, use TC.restoreLogLevel.
TC.setLogLevel(level, options);
Arguments
Name | Description |
---|---|
level | (string) Specify the log level. Possible values:
|
options (Optional) | (boolean) If the log level is set to extended, you can specify which data is captured using true/false flags as properties of json_object. Flags include:
Any flag that is omitted is considered as false. |
Return value
A promise that is fulfilled with undefined upon success.
Examples
Disable the log level:
(async ()=>{
await TC.setLogLevel("Disabled");
})();
Enable the standard log:
(async ()=>{
await TC.setLogLevel("Standard");
})();
Enable the extended log, and specify which logs to capture:
(async ()=>{
await TC.setLogLevel("Extended",{ log_http : true, log_AUT: true, log_parameters: true});
})();