TCA.setLogLevel
Enables you to change the log level during script replay.
To restore the initial log level setting, use TCA.restoreLogLevel.
TCA.setLogLevel(level, log_flags);
Arguments
Name | Description |
---|---|
level | (string) Specify the log level. Possible values:
|
log_flags (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 will be fulfilled with no arguments.
Examples
Disable the log level:
TCA.setLogLevel(“Set the log level to “Disabled”).then(function(){
TCA.done();
}).catch(function (error) {
TCA.doneWithError(error);
});
Enable the Standard log:
TCA.setLogLevel(“Standard”).then(function(){
TCA.done();
}).catch(function (error) {
TCA.doneWithError(error);
});
Enable the Extended log:
TCA.setLogLevel(“Extended”).then(function(){
TCA.done();
}).catch(function (error) {
TCA.doneWithError(error);
});
Enable the Extended log, and specify which logs to capture:
TCA.setLogLevel(“Extended”,{ log_http : true, log_AUT: true, log_parameters: true}).then(function(){
TCA.done();
}).catch(function (error) {
TCA.doneWithError(error);
});