Audit logging functionality for pm.