disable INFO com.qmetry.qaf.automation.ui.WebDriverCommandLogger loging

171 views
Skip to first unread message

user26

unread,
Feb 5, 2021, 8:33:17 PM2/5/21
to qaf users
How to disable  INFO com.qmetry.qaf.automation.ui.WebDriverCommandLogger  to logs in console output in maven QAF project

Pratish Patel

unread,
Feb 8, 2021, 8:40:42 PM2/8/21
to qaf users
any luck?

On Fri, Feb 5, 2021 at 5:33 PM user26 <prati...@gmail.com> wrote:
How to disable  INFO com.qmetry.qaf.automation.ui.WebDriverCommandLogger  to logs in console output in maven QAF project

--
You received this message because you are subscribed to a topic in the Google Groups "qaf users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/qaf-users/bNRMiSOiEvA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to qaf-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qaf-users/08d7309d-d009-4575-a8ea-ae5a9cd3607cn%40googlegroups.com.

saifud...@gmail.com

unread,
Feb 8, 2021, 8:50:57 PM2/8/21
to qaf users
Hello, 

   Not sure if it this meets your requirement but worth a try : 
    File name : log4j.properties
    Property : log4j.rootCategory=DEBUG, CONSOLE, LOGFILE   -->  log4j.rootCategory=WARN, CONSOLE, LOGFILE
    You can update it to ERROR to further reduce logging.

Pratish Patel

unread,
Feb 8, 2021, 8:57:51 PM2/8/21
to qaf users
I tired same but did not work

cjayswal

unread,
Feb 8, 2021, 9:15:32 PM2/8/21
to qaf users
Any changes made in log4j.properties should take effect. If it is not taking effect that means it's path not configured properly. Quick and dirty way is to place log4j.properties under src directory. In order to disable logging you can set log level OFF. For example:

log4j.rootCategory=OFF

સોમવાર, 8 ફેબ્રુઆરી, 2021ના રોજ 05:57:51 PM UTC-8 વાગ્યે user26 દ્વારા આમ લખવામાં આવ્યું હતું:

Pratish Patel

unread,
Feb 9, 2021, 8:34:48 PM2/9/21
to qaf users
I see this error. How can I solve this?


 SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/Users/m/.p2/pool/plugins/org.eclipse.m2e.maven.runtime.slf4j.simple_1.16.0.20200610-1735/jars/slf4j-simple-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [file:/Users/m/eclipse/jee-2020-12/Eclipse.app/Contents/Eclipse/configuration/org.eclipse.osgi/5/0/.cp/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.SimpleLoggerFactory]
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/Users/m/.p2/pool/plugins/org.eclipse.m2e.maven.runtime.slf4j.simple_1.16.0.20200610-1735/jars/slf4j-simple-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [file:/Users/m/eclipse/jee-2020-12/Eclipse.app/Contents/Eclipse/configuration/org.eclipse.osgi/5/0/.cp/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.SimpleLoggerFactory]




Pratish Patel

unread,
Feb 9, 2021, 8:40:30 PM2/9/21
to qaf users
nvm, I found the duplicate dependencies.

Thank you so much for your help!!
Reply all
Reply to author
Forward
0 new messages