org.openqa.selenium.logging
Class LocalLogs
java.lang.Object
org.openqa.selenium.logging.LocalLogs
- All Implemented Interfaces:
- Logs
public class LocalLogs
- extends java.lang.Object
- implements Logs
Stores and retrieves logs in-process (i.e. without any RPCs).
Constructor Summary |
LocalLogs()
|
LocalLogs(java.util.Set<java.lang.String> logTypesToIgnore)
|
Method Summary |
void |
addEntry(java.lang.String logType,
LogEntry entry)
|
LogEntries |
get(java.lang.String logType)
Fetches the logs for the given log type. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NULL_LOGGER
public static final LocalLogs NULL_LOGGER
- Logger which doesn't do anything.
LocalLogs
public LocalLogs()
LocalLogs
public LocalLogs(java.util.Set<java.lang.String> logTypesToIgnore)
get
public LogEntries get(java.lang.String logType)
- Description copied from interface:
Logs
- Fetches the logs for the given log type.
For more info on enabling logging, look at
LoggingPreferences
.
- Specified by:
get
in interface Logs
- Parameters:
logType
- String. Can be any of the values in LogType
.
- Returns:
- all log entries for the specified logtype if enabled. Returns null
if the log type is unknown by the dtiver.
addEntry
public void addEntry(java.lang.String logType,
LogEntry entry)
Copyright © 2012. All Rights Reserved.