qmetry / qaf

Quality Automation Framework for web, mobileweb, mobile native and rest web-service using Selenium, webdrier, TestNG and Java Jersey
https://qmetry.github.io/qaf
MIT License
254 stars 138 forks source link

Unable to avoid logging on console #448

Open ajaysuryavamshi opened 1 year ago

ajaysuryavamshi commented 1 year ago

QAF Version - 2.1.14

Note: only the latest version is supported

Steps To Reproduce

1. Create a Project using QAF Blank Maven Project and Add qaf-support-ws
2. Add Scenarios for Web Services & Try to execute them
3. Disable/remove log4j.properties or change the root category to ERROR/FATAL

Expected behavior

Console log should print only ERROR logs

Actual behavior

Console log is printing ALL THE LOG VERBOSE

Is the issue reproducible on runner?

Test case sample

Please, share the test case (as small as possible) which shows the issue

cjayswal commented 1 year ago

For older version of qaf (below 3.1.0) there is log4j1.x dependency from framework. There may be other logging libraries taking control of logging instead of log4j. You should try to find out which logging implementation takes control and configure accordingly. Check similar questions in users group and stack overflow

From qaf version 3.1.0, qaf doesn't include log4j dependency. User need to choose/add logging framework of their choice ( for example log4j, log4j2, slf4j, Logback etc.) and configure logging as per logging framework used. Refer release-notes