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(List<LogEntry> entries)
           
 
Method Summary
 List<LogEntry> filter(Level level)
           
 List<LogEntry> getAll()
           
 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(List<LogEntry> entries)
Method Detail

getAll

public List<LogEntry> getAll()
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.