DriverOptionsSetLoggingPreference Method WebDriver
Sets the logging preferences for this driver.

Namespace: OpenQA.Selenium
Assembly: WebDriver (in WebDriver.dll) Version: 3.1.0
Syntax

public void SetLoggingPreference(
	string logType,
	LogLevel logLevel
)

Parameters

logType
Type: SystemString
The type of log for which to set the preference. Known log types can be found in the LogType class.
logLevel
Type: OpenQA.SeleniumLogLevel
The LogLevel value to which to set the log level.
See Also

Reference