Monday, June 30, 2014

How to Disable Selenium HtmlUnitDriver logging

Recently, while working on a project using Selenium HtmlUnitDriver, i found that it generates too much log messages by default to output console which really fills the screen with non wanted messages.

So, like me some of you may also get this and wanted to resolve the same. What i did is added the below code statements to suppress the logging messages.


and it Worked :) :)


lalit kumar said...


Jay said...

This worked perfect for me too! Although I had to alter my file to the following to make it work properly. Thank you!!!

# Root logger option
log4j.rootLogger=WARN, file

lalit kumar said...

Hey Thanks John, for adding your solution

AWS Certified Solutions Architect Associate - AWS Introduction - Questions

All the Best !!! Show Result !! Try Again !! ×