/** * Payload CMS Collection Logging Hooks * * Provides reusable hooks for logging collection operations. * Only logs important events - errors, warnings, and security-relevant operations. * * What is logged: * - Create/Update/Delete failures * - Authentication-related operations on Users collection * - Form submission errors * - Validation failures * * What is NOT logged (routine traffic): * - Successful read operations * - Normal CRUD operations (unless they fail) * * @module @qwickapps/cms/collections/hooks/loggingHooks */ import type { CollectionAfterChangeHook, CollectionAfterDeleteHook, CollectionBeforeChangeHook, CollectionAfterErrorHook } from 'payload'; /** * Hook to log collection errors * Attach to afterError hook on collections */ export declare const logCollectionError: CollectionAfterErrorHook; /** * Hook to log form submission creation * Use on FormSubmissions collection */ export declare const logFormSubmission: CollectionAfterChangeHook; /** * Hook to log user authentication events * Use on Users collection */ export declare const logUserAuthEvent: CollectionAfterChangeHook; /** * Hook to log deletion of important records * Use on collections where deletion should be tracked */ export declare const logDeletion: CollectionAfterDeleteHook; /** * Hook to log validation errors before save * Useful for debugging form/data issues */ export declare const logValidationContext: CollectionBeforeChangeHook; //# sourceMappingURL=loggingHooks.d.ts.map