Package org.openqa.selenium.logging
Class LoggingPreferences
java.lang.Object
org.openqa.selenium.logging.LoggingPreferences
- All Implemented Interfaces:
 Serializable
Represents the logging preferences.
 
Sample usage: DesiredCapabilities caps = DesiredCapabilities.firefox(); LoggingPreferences logs = new LoggingPreferences(); logs.enable(LogType.DRIVER, Level.INFO); caps.setCapability(CapabilityType.LOGGING_PREFS, logs);
WebDriver driver = new FirefoxDriver(caps);
- See Also:
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionaddPreferences(LoggingPreferences prefs) Adds the given logging preferences giving them precedence over existing preferences.voidEnables logging for the given log type at the specified level and above.booleaninthashCode()toJson() 
- 
Constructor Details
- 
LoggingPreferences
public LoggingPreferences() 
 - 
 - 
Method Details
- 
enable
Enables logging for the given log type at the specified level and above. - 
getEnabledLogTypes
- Returns:
 - the set of log types for which logging has been enabled.
 
 - 
getLevel
 - 
addPreferences
Adds the given logging preferences giving them precedence over existing preferences.- Parameters:
 prefs- The logging preferences to add.- Returns:
 - A references to this object.
 
 - 
hashCode
public int hashCode() - 
equals
 - 
toJson
 
 -