Package org.openqa.selenium.logging
Class LoggingHandler
java.lang.Object
java.util.logging.Handler
org.openqa.selenium.logging.LoggingHandler
Deprecated, for removal: This API element is subject to removal in a future version.
logging is not in the W3C WebDriver spec and is no longer supported. This class will
be removed in a future release.
A custom handler used to record log entries.
This handler queues up log records as they come, up to MAX_RECORDS (currently 1000) records. If it reaches this capacity it will remove the older records from the queue before adding the next one.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Deprecated, for removal: This API element is subject to removal in a future version.voidflush()Deprecated, for removal: This API element is subject to removal in a future version.static LoggingHandlerDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel
-
Method Details
-
getInstance
Deprecated, for removal: This API element is subject to removal in a future version. -
getRecords
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- an unmodifiable list of LogEntry.
-
publish
Deprecated, for removal: This API element is subject to removal in a future version. -
flush
public void flush()Deprecated, for removal: This API element is subject to removal in a future version. -
close
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
closein classHandler- Throws:
SecurityException
-