public abstract class LocalLogs
extends java.lang.Object
implements org.openqa.selenium.logging.Logs
Modifier and Type | Field and Description |
---|---|
private static LocalLogs |
NULL_LOGGER |
Modifier | Constructor and Description |
---|---|
protected |
LocalLogs() |
Modifier and Type | Method and Description |
---|---|
abstract void |
addEntry(java.lang.String logType,
org.openqa.selenium.logging.LogEntry entry) |
abstract org.openqa.selenium.logging.LogEntries |
get(java.lang.String logType) |
static LocalLogs |
getCombinedLogsHolder(LocalLogs predefinedTypeLogger,
LocalLogs allTypesLogger)
See documentation of CompositeLocalLogs about the difference between the first
LocalLogs instance and the second one.
|
static LocalLogs |
getHandlerBasedLoggerInstance(LoggingHandler loggingHandler,
java.util.Set<java.lang.String> logTypesToInclude) |
static LocalLogs |
getNullLogger()
Logger which doesn't do anything.
|
static LocalLogs |
getStoringLoggerInstance(java.util.Set<java.lang.String> logTypesToIgnore) |
private static final LocalLogs NULL_LOGGER
public static LocalLogs getNullLogger()
public static LocalLogs getStoringLoggerInstance(java.util.Set<java.lang.String> logTypesToIgnore)
public static LocalLogs getHandlerBasedLoggerInstance(LoggingHandler loggingHandler, java.util.Set<java.lang.String> logTypesToInclude)
public static LocalLogs getCombinedLogsHolder(LocalLogs predefinedTypeLogger, LocalLogs allTypesLogger)
predefinedTypeLogger
- LocalLogs which pre-defines the log types it stores.allTypesLogger
- LocalLogs which can store log entries for all log types.public abstract org.openqa.selenium.logging.LogEntries get(java.lang.String logType)
get
in interface org.openqa.selenium.logging.Logs
public abstract void addEntry(java.lang.String logType, org.openqa.selenium.logging.LogEntry entry)