org.openqa.selenium.server.log
Class PerSessionLogHandler

java.lang.Object
  extended by java.util.logging.Handler
      extended by org.openqa.selenium.server.log.PerSessionLogHandler
Direct Known Subclasses:
DefaultPerSessionLogHandler, NoOpSessionLogHandler

public abstract class PerSessionLogHandler
extends Handler

Author:
Kristian Rosenvold

Constructor Summary
PerSessionLogHandler()
           
 
Method Summary
abstract  void attachToCurrentThread(org.openqa.selenium.remote.SessionId sessionId)
           
abstract  void clearThreadTempLogs()
           
abstract  void configureLogging(org.openqa.selenium.logging.LoggingPreferences loggingPrefs)
           
abstract  void detachFromCurrentThread()
           
abstract  void fetchAndStoreLogsFromDriver(org.openqa.selenium.remote.SessionId sessionId, WebDriver driver)
           
abstract  org.openqa.selenium.logging.SessionLogs getAllLogsForSession(org.openqa.selenium.remote.SessionId sessionId)
           
abstract  String getLog(org.openqa.selenium.remote.SessionId sessionId)
           
abstract  List<org.openqa.selenium.remote.SessionId> getLoggedSessions()
           
abstract  org.openqa.selenium.logging.LogEntries getSessionLog(org.openqa.selenium.remote.SessionId sessionId)
           
abstract  void publish(LogRecord record)
           
abstract  void removeSessionLogs(org.openqa.selenium.remote.SessionId sessionId)
           
abstract  void transferThreadTempLogsToSessionLogs(org.openqa.selenium.remote.SessionId sessionId)
           
 
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
 

Constructor Detail

PerSessionLogHandler

public PerSessionLogHandler()
Method Detail

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.