Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable logs #16

Open
zarashima opened this issue Apr 23, 2022 · 1 comment
Open

Disable logs #16

zarashima opened this issue Apr 23, 2022 · 1 comment

Comments

@zarashima
Copy link

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
Copy link
Member

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);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants