Disable logs
zarashima opened this issue · 1 comments
zarashima commented
Hi,
Upon sending requests using QAF web service functions, the request and response logs are all captured and displayed. Is there any way to disable request or response logs so that are not logged anymore?
Thanks
cjayswal commented
You can set log level for com.qmetry.qaf.automation.ws.rest.RequestLogger
.
Another alternate is, in suite listener or configuration listener you can set request logger with null print stream. For example:
RequestLogger requestLogger = new RequestLogger(NullPrintStream.NULL_PRINT_STREAM);
TestBaseProvider.instance().get().getContext().setProperty("rest.client.requestlogger", requestLogger);