Logging Selenium commands

Turning on logging is a valuable way to get extra information that might help you determine why you might be having a problem.

Getting a logger

Logger level

Logger level helps to filter out logs based on their severity.

Actionable items

Things are logged as warnings if they are something the user needs to take action on. This is often used for deprecations. For various reasons, Selenium project does not follow standard Semantic Versioning practices. Our policy is to mark things as deprecated for 3 releases and then remove them, so deprecations may be logged as warnings.

Useful information

This is the default level where Selenium logs things that users should be aware of but do not need to take actions on. This might reference a new method or direct users to more information about something

Debugging Details

The debug log level is used for information that may be needed for diagnosing issues and troubleshooting problems.

Logger output

Logs can be displayed in the console or stored in a file. Different languages have different defaults.

Logger filtering