grails-audit-logging-plugin
grails-audit-logging-plugin copied to clipboard
GPAUDITLOGGING-22: Making verbose configurable per domain object - Allowing to choose what events to audit per domain obj - Issue/conflict with Shiro plugin when retrieving URI to store in the audit table
Original Reporter: amalbet Environment: Not Specified Version: Not Specified Migrated From: http://jira.grails.org/browse/GPAUDITLOGGING-22
I would like to propose these enhancements for next release:
- Making verbose configurable per domain object
- Allowing to choose what events to audit per domain obj
- Issue/conflict with Shiro plugin when retrieving URI to store in the audit table
amalbet said: Fix for a bug my changes introduced around loading empty ignore list. A unit test has been included too.
aeischeid said: I would be happy to see these changes made to the plugin.
In addition I would find it useful to be able to not do audit logging in dev environment or at least not have it run during bootstrap as it causes run-app to take many minutes to complete on one of my apps.
maybe similar to verbose setting, like:
auditLog.environment.dev = false
hartsock said: I like this suggestion. I have been racking my brains how to solve the JIRA regarding unit testing transactions. The short of it is I have to create independent transactions to get audit logging to work at all. This setting as a default would mean we could explain that the audit log behavior in test is going to be a little different (due to that separate audit log transaction business).
I am going to try and get a release out in early October I will put this feature in the new release if I can work it in.
amalbet said: I have some integration tests I made to proof that this works... I can share it with you and may provide some help...
hartsock said: Please do.
amalbet said: Here is the integration test I created for an GORM obj (Evisit). It basically tests that the available configurations for the auditable setting on the domain object work in different combinations. Let me know if you have any questions.