UserActionLogger

open class UserActionLogger

Constructors

Link copied to clipboard
constructor(@NotNull project: @NotNull Project)
Constructor for UserActionLogger, initializes values and loads properties.

Functions

Link copied to clipboard
open fun shouldSkip(@NotNull filePath: @NotNull String): Boolean
Checks if a given file should be skipped when logging.
Link copied to clipboard
open fun shouldSkipCode(code: String): Boolean
Link copied to clipboard
open fun stop()
Stops all currently running tasks managed by the scheduler, if any.
Link copied to clipboard
open fun write(opened: Boolean)
Writes the user action (open or close) to the eventBuffer.
Link copied to clipboard
Writes all buffered events to the uoc.data file.
Link copied to clipboard
open fun writeCreateDelete(fileMD: String, fileNameWithPath: String, delete: Boolean)
Logs the creation or deletion of a file in the project.
Link copied to clipboard
open fun writeLargeMD(fileMD: String, fileNameWithPath: String, lineNumber: Int, addedCode: String)
Writes the modified file name, timestamp, line number and added code to the eventBuffer.
Link copied to clipboard
open fun writeMD(fileMD: String, fileNameWithPath: String, lineNumber: Int)
Writes the modified file name, timestamp and potentially line number to the eventBuffer.