Audit Library

Contents

Audit Library

This library was first introduced in v7.2

This library contains audit logging functions.

Usage

Add the following into your build.gradle file:

dependencies {
  include "com.enonic.xp:lib-audit:${xpVersion}"
}

In your JavaScript controller, add a require statement:

const authLib = require('/lib/xp/audit');

You are now free to use the library functionality.

Functions

find

This function searches for audit logs.

get

This function fetches an audit log.

log

This function creates a single audit log entry.

Contents