org.openqa.selenium.logging
Class LogEntries

java.lang.Object
  extended by org.openqa.selenium.logging.LogEntries
All Implemented Interfaces:
Iterable<LogEntry>

@Beta
public class LogEntries
extends Object
implements Iterable<LogEntry>

Represent a pool of . This class also provides filtering mechanisms based on levels.


Constructor Summary
LogEntries(Iterable<LogEntry> entries)
           
 
Method Summary
 List<LogEntry> filter(Level level)
           
 List<LogEntry> getAll()
          Get the list of all log entries.
 Iterator<LogEntry> iterator()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogEntries

public LogEntries(Iterable<LogEntry> entries)
Method Detail

getAll

public List<LogEntry> getAll()
Get the list of all log entries.

Returns:
a view of all LogEntry fetched

filter

public List<LogEntry> filter(Level level)
Parameters:
level - Level the level to filter the log entries
Returns:
all log entries for that level and above

iterator

public Iterator<LogEntry> iterator()
Specified by:
iterator in interface Iterable<LogEntry>


Copyright © 2012. All Rights Reserved.