Modify logging for selenium-server-standalone.jar

1,719 views
Skip to first unread message

Alex Philippi

unread,
Nov 19, 2015, 10:29:49 PM11/19/15
to Selenium Users
Hi all,
I try to modify the log-behavior for my selenium nodes, because the nodes are quite chatty. Therefore I added -Djava.util.logging.config.file=logging.properties when I start the node to be able to only see important messages. But this doesn't work. I see these annoying INFO-logs. Do I missing something? Should I use the jetty-logging instead of java.util?

I start the node this way:
java -jar -Dwebdriver.ie.driver="Webdriver\IEDriverServer.exe" -Djava.util.logging.config.file=logging.properties selenium-server-standalone-2.48.2.jar -role node -nodeConfig remoteNodeConfig.json

And this is the content of the logging.properties:
handlers= java.util.logging.ConsoleHandler
java.util.logging.ConsoleHandler.level = WARNING

I hope you can help :)

Best Regards
Alex

 

Krishnan Mahadevan

unread,
Nov 20, 2015, 6:54:49 AM11/20/15
to Selenium Users
Alex,

This is mostly because of the way in which Selenium Grid configures the Log Handlers.

Try adding the JVM argument "-Dselenium.LOGGER.level=WARNING" to your node startup command.
This would basically quieten the chatty console :)


If you are keen on knowing why this JVM argument here's why.


Hope that helps 


Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/af3e5065-2318-45d8-b203-827ab1f74e8c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alex Philippi

unread,
Nov 20, 2015, 8:41:50 AM11/20/15
to Selenium Users
Hi Krishnan ,
thnx, it works like a charm :). (And with -Dselenium.LOGGER=selenium.log I am able to log to file)

Best Regards
Alex
Reply all
Reply to author
Forward
0 new messages