LogsRepo

class LogsRepo(val logsDir: File)

Constructors

Link copied to clipboard
constructor(logsDir: File)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun clearLogs()

Clears all logs in the logs directory. This will delete all session directories and their contents.

Link copied to clipboard
fun getLogsForSession(sessionId: String?): List<TrailblazeLog>

Returns a list of logs for the given session ID. If the session ID is null or the session directory does not exist, an empty list is returned.

Link copied to clipboard
fun getSessionDir(session: String): File

Returns the directory for the given session, creating it if it does not exist.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Watches the trailblaze session directory for changes and reports back updates via the TrailblazeSessionListener.

Link copied to clipboard
fun stopWatching(trailblazeSessionId: TrailblazeSessionId)

Stops watching the trailblaze session directory for changes.