Class LogEntryHandler<T extends org.openqa.selenium.bidi.log.GenericLogEntry>

java.lang.Object
org.jenkinsci.test.acceptance.selenium.LogEntryHandler<T>
All Implemented Interfaces:
Consumer<T>

public class LogEntryHandler<T extends org.openqa.selenium.bidi.log.GenericLogEntry> extends Object implements Consumer<T>
  • Constructor Summary

    Constructors
    Constructor
    Description
    LogEntryHandler(org.openqa.selenium.bidi.log.LogLevel minimumLogLevel, String loggerPrefix)
    Create a new LogEntryHandler that will accept all events of type T and log them to the logger with the supplied name as long as they are not a finer log than the minimum log level.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(T t)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.util.function.Consumer

    andThen
  • Constructor Details

    • LogEntryHandler

      public LogEntryHandler(org.openqa.selenium.bidi.log.LogLevel minimumLogLevel, String loggerPrefix)
      Create a new LogEntryHandler that will accept all events of type T and log them to the logger with the supplied name as long as they are not a finer log than the minimum log level.
      Parameters:
      minimumLogLevel - the lowest level of logs that we want to output.
      loggerPrefix - prefix to apply to the logs when logging, so different log streams can be identified.
  • Method Details

    • accept

      public void accept(T t)
      Specified by:
      accept in interface Consumer<T extends org.openqa.selenium.bidi.log.GenericLogEntry>