$auditLog
Updated on Aug 19, 2025 1 minutes to readThe AuditLog Plugin provides methods to register audit entries for scripts and objects, allowing tracking of actions with optional comments.
Methods
Method | Description |
---|---|
register | Registers an audit log entry for a specific object. |
Methods Details
register()
• Type
(
scriptAlias: E8ScriptAlias,
id: E8ObjectId,
comment: string
) => boolean
• Details
Expects a script alias, a record ID, and a string comment with additional information about the action.
Returns a boolean indicating whether the audit entry was successfully registered.
• Example
const success = E8App.$auditLog.register(
'lstExample',
123,
'Updated object status to active'
);
// success now indicates if the audit entry was successfully created