Understand Selinum Java logs (and disabling it)

44 views
Skip to first unread message

Paulo Eduardo Neves

unread,
Jan 12, 2017, 10:55:02 PM1/12/17
to Selenium Users
When I run my Java/JUnit Selenium webdriver tests, I'm overwhelmed with log messages. Here are some examples:

1484238833185    addons.xpi    DEBUG    Calling bootstrap method startup on fir...@getpocket.com version 1.0.5
1484238833202    addons.manager    DEBUG    Completed startup sequence
1484238833652    addons.xpi-utils    DEBUG    Updating active state for add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} to false
global","version":"52.0a2","type":"theme","internalName":"classic/1.0","updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"icons":{"32":"icon.png","48":"icon.png"},"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Default","description":"The default theme.","creator":"Mozilla","homepageURL":null,"contributors":["Mozilla Contributors"]},"visible":true,"active":false,"userDisabled":true,"appDisabled":false,"descriptor":"C:\\Program Files (x86)\\Firefox Developer Edition\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi","installDate":1483983566447,"updateDate":1483983566447,"applyBackgroundUpdates":1,"skinnable":true,"size":19587,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"52.0a2","maxVersion":"52.0a2"}],"targetPlatforms":[],"seen":true,"dependencies":[],"hasEmbeddedWebExtension":false}
1484238833696    addons.manager    DEBUG    Starting provider: <unnamed-provider>
1484238834114    DeferredSave.extensions.json    DEBUG    Write succeeded
1484238834115    addons.xpi-utils    DEBUG    XPI Database saved, setting schema version preference to 19
jan 12, 2017 2:33:55 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFORMAÇÕES: Detected dialect: W3C
1484238897917    addons.productaddons    INFO    downloadXHR File download. status=403

How do I configure these logs. The docs just report 6 types of log:

        loggingPrefs.enable(LogType.BROWSER, Level.WARNING);
        loggingPrefs.enable(LogType.CLIENT, Level.WARNING);
        loggingPrefs.enable(LogType.DRIVER, Level.SEVERE);
        loggingPrefs.enable(LogType.PERFORMANCE, Level.WARNING);
        loggingPrefs.enable(LogType.PROFILER, Level.WARNING);
        loggingPrefs.enable(LogType.SERVER, Level.WARNING);

How do I know from which one each message belongs?

How do I disable the INFO/DEBUG messages?

I've tried a lot of this, but I think I don't really understand the log handling in Selenium.

regards,
Paulo
Reply all
Reply to author
Forward
0 new messages