Skip to content

Latest commit

 

History

History
39 lines (34 loc) · 1.02 KB

File metadata and controls

39 lines (34 loc) · 1.02 KB

static-audit

A simple library for logging and retrieving user actions.

Installation

repositories {
    maven {
        url = "https://repo.staticstudios.net/snapshots/"
    }
}

dependencies {
    implementation("net.staticstudios:static-audit:{VERSION}")
}

Usage

Create an instance of StaticAudit using the builder pattern:

StaticAudit audit = StaticAudit.builder()
        .applicationGroup("application_group")
        .applicationId("application_id")
        .connectionSupplier(...)
        .build();
// Log  an action 
audit.log(...);

//Retrieve actions
audit.retrieve(...);