Package org.openqa.selenium.logging
Class LocalLogs
java.lang.Object
org.openqa.selenium.logging.LocalLogs
- All Implemented Interfaces:
Logs
Deprecated, for removal: This API element is subject to removal in a future version.
logging is not in the W3C WebDriver spec and is no longer supported. This class will
be removed in a future release.
Stores and retrieves logs in-process (i.e. without any RPCs).
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionabstract voidDeprecated, for removal: This API element is subject to removal in a future version.abstract LogEntriesDeprecated, for removal: This API element is subject to removal in a future version.Fetches available log entries for the given log type.static LocalLogsgetCombinedLogsHolder(LocalLogs predefinedTypeLogger, LocalLogs allTypesLogger) Deprecated, for removal: This API element is subject to removal in a future version.See documentation of CompositeLocalLogs about the difference between the first LocalLogs instance and the second one.static LocalLogsgetHandlerBasedLoggerInstance(LoggingHandler loggingHandler, Set<String> logTypesToInclude) Deprecated, for removal: This API element is subject to removal in a future version.static LocalLogsDeprecated, for removal: This API element is subject to removal in a future version.Logger which doesn't do anything.static LocalLogsgetStoringLoggerInstance(Set<String> logTypesToIgnore) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openqa.selenium.logging.Logs
getAvailableLogTypes
-
Constructor Details
-
LocalLogs
protected LocalLogs()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getNullLogger
Deprecated, for removal: This API element is subject to removal in a future version.Logger which doesn't do anything.- Returns:
- the null logger
-
getStoringLoggerInstance
Deprecated, for removal: This API element is subject to removal in a future version. -
getHandlerBasedLoggerInstance
public static LocalLogs getHandlerBasedLoggerInstance(LoggingHandler loggingHandler, Set<String> logTypesToInclude) Deprecated, for removal: This API element is subject to removal in a future version. -
getCombinedLogsHolder
public static LocalLogs getCombinedLogsHolder(LocalLogs predefinedTypeLogger, LocalLogs allTypesLogger) Deprecated, for removal: This API element is subject to removal in a future version.See documentation of CompositeLocalLogs about the difference between the first LocalLogs instance and the second one.- Parameters:
predefinedTypeLogger- LocalLogs which pre-defines the log types it stores.allTypesLogger- LocalLogs which can store log entries for all log types.- Returns:
- A LocalLogs instance.
-
get
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:LogsFetches available log entries for the given log type.Note that log buffers are reset after each call, meaning that available log entries correspond to those entries not yet returned for a given log type. In practice, this means that this call will return the available log entries since the last call, or from the start of the session.
For more info on enabling logging, look at
LoggingPreferences. -
addEntry
Deprecated, for removal: This API element is subject to removal in a future version.
-