prorm API Reference
    Preparing search index...

    Interface AuditLoggerOptions

    Options for configuring the AuditLogger

    interface AuditLoggerOptions {
        tableName?: string;
        userIdGetter?: () => string | number | undefined;
        ipAddressGetter?: () => string | undefined;
        modelName?: string;
    }
    Index
    tableName?: string

    Custom table name for the audit log. Default: 'AuditLogs'

    userIdGetter?: () => string | number | undefined

    Function to get the current user ID

    ipAddressGetter?: () => string | undefined

    Function to get the current IP address

    modelName?: string

    Custom model name for the audit log model