public class SessionLogsToFileRepository extends Object
| Constructor and Description |
|---|
SessionLogsToFileRepository() |
| Modifier and Type | Method and Description |
|---|---|
void |
createLogFileAndAddToMap(org.openqa.selenium.remote.SessionId sessionId)
This creates log file object which represents logs in file form.
|
void |
flushRecordsToLogFile(org.openqa.selenium.remote.SessionId sessionId,
List<LogRecord> records)
This creates a mapping between session and file representation of logs if doesnt exist already.
|
List<LogRecord> |
getLogRecords(org.openqa.selenium.remote.SessionId sessionId)
This returns the log records storied in the corresponding log file.
|
void |
removeLogFile(org.openqa.selenium.remote.SessionId sessionId) |
public void createLogFileAndAddToMap(org.openqa.selenium.remote.SessionId sessionId) throws IOException
sessionId - session-id for the log file entry needs to be created.IOExceptionpublic void flushRecordsToLogFile(org.openqa.selenium.remote.SessionId sessionId, List<LogRecord> records) throws IOException
sessionId - session-id to which the log records belongrecords - logRecords that need to be storedIOExceptionpublic List<LogRecord> getLogRecords(org.openqa.selenium.remote.SessionId sessionId) throws IOException
sessionId - session-id for which the file logs needs to be returned.IOExceptionpublic void removeLogFile(org.openqa.selenium.remote.SessionId sessionId)
Copyright © 2013. All rights reserved.