-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
How to set the level of geckodriver log? #362
Comments
The default log level for geckodriver on release builds of Firefox is You can override the logging level by passing |
Hi @andreastt ,
But I still can get these logs on my console:
I really don't want to see these logs any more, could you give me a favour to remove these logs(info and debug)? my geckodriver version is v0.11.0. and my selenium version is 3.0.1. Thank you! |
The log messages you see from |
@andreastt |
Well I’m not sure what client binding you are using, but most bindings have a way to discard stdout from subprocesses. Certainly in the case of the Python bindings, all stdout is redirected to a file called geckodriver.log in your current working directory. |
@naomizhang4 you can send to dev/null with os module in python |
Hello guys, any updates on this? I've tried all suggested options above and none of them seems to work. |
@lintuxt Make sure you are using the latest Firefox Nightly and set |
How set {"moz:firefoxOptions": {"logging": "level": "trace"}}} as a capability ? |
That depends on which client bindings you are using. Hopefully you can consult the documentation there to figure out how to set capabilities. |
Please write an example. I use the following construct: |
Could someone give me an example using Selenium with Java? Sincerely I don't understand the need to be so cryptic here. In Selenium with Java, I don't have a clear way to pass a JSON as a parameter anywhere. |
I'm now working on geckodriver 0.11.1
each time I start up my scripts there comes a lot of geckodriver log w/c I won't use forever.
I just read the change log and try to add an argument in my scripts, but didn't work.
can anybody out there inform me how to set the level log of geckodriver via scripts?
The text was updated successfully, but these errors were encountered: