org.openqa.selenium.server.log
Class PerSessionLogHandler
java.lang.Object
java.util.logging.Handler
org.openqa.selenium.server.log.PerSessionLogHandler
- Direct Known Subclasses:
- DefaultPerSessionLogHandler, NoOpSessionLogHandler
public abstract class PerSessionLogHandler
- extends Handler
- Author:
- Kristian Rosenvold
Methods inherited from class java.util.logging.Handler |
close, flush, getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PerSessionLogHandler
public PerSessionLogHandler()
attachToCurrentThread
public abstract void attachToCurrentThread(org.openqa.selenium.remote.SessionId sessionId)
transferThreadTempLogsToSessionLogs
public abstract void transferThreadTempLogsToSessionLogs(org.openqa.selenium.remote.SessionId sessionId)
detachFromCurrentThread
public abstract void detachFromCurrentThread()
removeSessionLogs
public abstract void removeSessionLogs(org.openqa.selenium.remote.SessionId sessionId)
clearThreadTempLogs
public abstract void clearThreadTempLogs()
getLog
public abstract String getLog(org.openqa.selenium.remote.SessionId sessionId)
throws IOException
- Throws:
IOException
getLoggedSessions
public abstract List<org.openqa.selenium.remote.SessionId> getLoggedSessions()
getAllLogsForSession
public abstract org.openqa.selenium.logging.SessionLogs getAllLogsForSession(org.openqa.selenium.remote.SessionId sessionId)
getSessionLog
public abstract org.openqa.selenium.logging.LogEntries getSessionLog(org.openqa.selenium.remote.SessionId sessionId)
throws IOException
- Throws:
IOException
fetchAndStoreLogsFromDriver
public abstract void fetchAndStoreLogsFromDriver(org.openqa.selenium.remote.SessionId sessionId,
WebDriver driver)
throws IOException
- Throws:
IOException
configureLogging
public abstract void configureLogging(org.openqa.selenium.logging.LoggingPreferences loggingPrefs)
publish
public abstract void publish(LogRecord record)
- Specified by:
publish
in class Handler
Copyright © 2013. All Rights Reserved.