org.openqa.selenium.server.log
Class SessionLogsToFileRepository
java.lang.Object
org.openqa.selenium.server.log.SessionLogsToFileRepository
public class SessionLogsToFileRepository
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SessionLogsToFileRepository
public SessionLogsToFileRepository()
flushRecordsToLogFile
public void flushRecordsToLogFile(String sessionId,
List<LogRecord> records)
throws IOException
- This creates a mapping between session and file representation of logs if doesnt exist already.
Writes the log records to the log file. This does *NOT* flush the logs to file. This does *NOT*
clear the records after writing to file.
- Parameters:
sessionId
- session-id to which the log records belongrecords
- logRecords that need to be stored
- Throws:
IOException
getLogRecords
public List<LogRecord> getLogRecords(String sessionId)
throws IOException
- This returns the log records storied in the corresponding log file. This does *NOT* clear the
log records in the file.
- Parameters:
sessionId
- session-id for which the file logs needs to be returned.
- Returns:
-
- Throws:
IOException
removeLogFile
public void removeLogFile(String sessionId)
Copyright © 2012. All Rights Reserved.