LogManager

The log manager keeps track of session log directories. It prevents the system from reserving a log directory twice so each session will have a unique log directory.

It also keeps track of log files so that the web view of the logs knows when to update. It can also restore previous session summaries which can be used to construct the session instance.

Constructors

Link copied to clipboard
constructor(configuration: GlobalConfiguration)

Properties

Link copied to clipboard
val root: <Error class: unknown class>

Functions

Link copied to clipboard
Link copied to clipboard
fun createLog(date: <Error class: unknown class>): String

Reserves a unique name for the log. Also allocates a structure for keeping track of the busy status.

Link copied to clipboard
Link copied to clipboard
fun isBusy(session: String): Boolean
Link copied to clipboard
fun listEntries(sessionDirectory: String): List<String>?
Link copied to clipboard

Browses the log directory root, collects all directories, and attempts to read the session summaries, if possible.

Link copied to clipboard
fun logFileCount(): <Error class: unknown class>
Link copied to clipboard
fun readSessionSummary(sessionDirectory: String): SessionSummary

Restore a session summary. The summary will

Link copied to clipboard
fun registerLogFiles(files: List<<Error class: unknown class>>)
Link copied to clipboard
fun restoreLog(date: <Error class: unknown class>): String

Restores an existing log if it isn't already opened. Also allocates a structure for keeping track of the busy status.

Link copied to clipboard
fun setFree(session: String)
Link copied to clipboard
fun setLogState(session: String, state: LogState)
Link copied to clipboard
fun setOpened(session: String)
Link copied to clipboard
fun setWriting(session: String)