org.openqa.selenium.server.log
Class NoOpSessionLogHandler

java.lang.Object
  extended by java.util.logging.Handler
      extended by org.openqa.selenium.server.log.PerSessionLogHandler
          extended by org.openqa.selenium.server.log.NoOpSessionLogHandler

public class NoOpSessionLogHandler
extends PerSessionLogHandler

Author:
Kristian Rosenvold

Constructor Summary
NoOpSessionLogHandler()
           
 
Method Summary
 void attachToCurrentThread(org.openqa.selenium.remote.SessionId sessionId)
           
 void clearThreadTempLogs()
           
 void close()
           
 void configureLogging(org.openqa.selenium.logging.LoggingPreferences prefs)
           
 void detachFromCurrentThread()
           
 void fetchAndStoreLogsFromDriver(org.openqa.selenium.remote.SessionId sessionId, WebDriver driver)
           
 void flush()
           
 org.openqa.selenium.logging.SessionLogs getAllLogsForSession(org.openqa.selenium.remote.SessionId sessionId)
           
 String getLog(org.openqa.selenium.remote.SessionId sessionId)
           
 com.google.common.collect.ImmutableList<org.openqa.selenium.remote.SessionId> getLoggedSessions()
           
 org.openqa.selenium.logging.LogEntries getSessionLog(org.openqa.selenium.remote.SessionId sessionId)
           
 void publish(LogRecord record)
           
 void removeSessionLogs(org.openqa.selenium.remote.SessionId sessionId)
           
 void transferThreadTempLogsToSessionLogs(org.openqa.selenium.remote.SessionId sessionId)
           
 
Methods inherited from class java.util.logging.Handler
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

NoOpSessionLogHandler

public NoOpSessionLogHandler()
Method Detail

attachToCurrentThread

public void attachToCurrentThread(org.openqa.selenium.remote.SessionId sessionId)
Specified by:
attachToCurrentThread in class PerSessionLogHandler

transferThreadTempLogsToSessionLogs

public void transferThreadTempLogsToSessionLogs(org.openqa.selenium.remote.SessionId sessionId)
Specified by:
transferThreadTempLogsToSessionLogs in class PerSessionLogHandler

detachFromCurrentThread

public void detachFromCurrentThread()
Specified by:
detachFromCurrentThread in class PerSessionLogHandler

removeSessionLogs

public void removeSessionLogs(org.openqa.selenium.remote.SessionId sessionId)
Specified by:
removeSessionLogs in class PerSessionLogHandler

clearThreadTempLogs

public void clearThreadTempLogs()
Specified by:
clearThreadTempLogs in class PerSessionLogHandler

getLog

public String getLog(org.openqa.selenium.remote.SessionId sessionId)
Specified by:
getLog in class PerSessionLogHandler

publish

public void publish(LogRecord record)
Specified by:
publish in class PerSessionLogHandler

flush

public void flush()
Specified by:
flush in class Handler

close

public void close()
           throws SecurityException
Specified by:
close in class Handler
Throws:
SecurityException

getSessionLog

public org.openqa.selenium.logging.LogEntries getSessionLog(org.openqa.selenium.remote.SessionId sessionId)
Specified by:
getSessionLog in class PerSessionLogHandler

getLoggedSessions

public com.google.common.collect.ImmutableList<org.openqa.selenium.remote.SessionId> getLoggedSessions()
Specified by:
getLoggedSessions in class PerSessionLogHandler

getAllLogsForSession

public org.openqa.selenium.logging.SessionLogs getAllLogsForSession(org.openqa.selenium.remote.SessionId sessionId)
Specified by:
getAllLogsForSession in class PerSessionLogHandler

fetchAndStoreLogsFromDriver

public void fetchAndStoreLogsFromDriver(org.openqa.selenium.remote.SessionId sessionId,
                                        WebDriver driver)
Specified by:
fetchAndStoreLogsFromDriver in class PerSessionLogHandler

configureLogging

public void configureLogging(org.openqa.selenium.logging.LoggingPreferences prefs)
Specified by:
configureLogging in class PerSessionLogHandler


Copyright © 2013. All Rights Reserved.