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.IOException - file i/o exception can occur because of a temp file createdpublic 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 storedIOException - file i/o exception can occur because of a temp file createdpublic List<LogRecord> getLogRecords(org.openqa.selenium.remote.SessionId sessionId) throws IOException
sessionId - session-id for which the file logs needs to be returned.IOException - IO exception can occur with reading the log filepublic void removeLogFile(org.openqa.selenium.remote.SessionId sessionId)
Copyright © 2015. All rights reserved.