Class LogStorage

java.lang.Object
com.github.invictum.reportportal.LogStorage

public class LogStorage extends Object
Central storage for collected logs provided by Selenium
  • Constructor Details

    • LogStorage

      public LogStorage()
  • Method Details

    • collect

      public void collect(org.openqa.selenium.logging.Logs seleniumLogs)
      Collects WebDriver logs if available and stores its to internal storage If error is occurred during log collection all future calls will be cancelled
      Parameters:
      seleniumLogs - to collect from
    • clean

      public void clean()
      Clears all logs related to current thread
    • query

      public List<EnhancedLogEntry> query(Predicate<EnhancedLogEntry> predicate)
      Returns logs that meets defined condition and removes them from storage. Logs could be queried only once
      Parameters:
      predicate - condition to use to find logs
      Returns:
      a list of queried logs