Class LoggingHandler

java.lang.Object
java.util.logging.Handler
org.openqa.selenium.logging.LoggingHandler

@Deprecated(forRemoval=true) public class LoggingHandler extends Handler
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 Details

    • getInstance

      public static LoggingHandler getInstance()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getRecords

      public Collection<LogEntry> getRecords()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      an unmodifiable list of LogEntry.
    • publish

      public void publish(LogRecord logRecord)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      publish in class Handler
    • flush

      public void flush()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      flush in class Handler
    • close

      public void close() throws SecurityException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      close in class Handler
      Throws:
      SecurityException