DbPureeLogStore

class DbPureeLogStore : PureeLogStore

Stores the logs in a SQLite database.

Constructors

DbPureeLogStore
Link copied to clipboard
fun DbPureeLogStore(context: Context, name: String)
Creates a new DbPureeLogStore.

Functions

add
Link copied to clipboard
open override fun add(outputId: String, bufferedLog: PureeBufferedLog)
Adds a new PureeBufferedLog to the store.
get
Link copied to clipboard
open override fun get(outputId: String, maxCount: Int): List<PureeBufferedLog>
Retrieves the logs from the store.
purgeLogsWithAge
Link copied to clipboard
open override fun purgeLogsWithAge(outputId: String, now: Instant, age: Duration)
Deletes all the logs according the age of the log.
remove
Link copied to clipboard
open override fun remove(outputId: String, bufferedLogs: List<PureeBufferedLog>)
Deletes the logs from the store.