Skip to content

Commit

Permalink
document auditableProperties
Browse files Browse the repository at this point in the history
  • Loading branch information
robertoschwald committed Jun 7, 2017
1 parent b4c5108 commit e4d0105
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions audit-logging/src/docs/configuration.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -227,13 +227,13 @@ If instead you want to trigger on version and lastUpdated changes you may specif
static auditable = [ignore:[]]
----

=== Properties to audit (whitelist)
Instead of excluding certain properties from auditing, it is also possible to define list of properties to audit using 'auditableProperties'.
auditableProperties has precedence over 'ignore'.
=== Whitelist attributes to audit (since 2.0.6)
Since version 2.0.6, instead of blacklisting which attributes to ignore, you can also define a list of properties to audit (whitelist) per Domain class.
The auditableProperties setting has precedence over ignore. Thanks to Paul Taylor for this feature.

[source,groovy]
----
static auditable = [auditableProperties: ['dateCreated', 'lastUpdated', 'myField']]
static auditable = [auditableProperties: ['name', 'famous', 'lastUpdated']]
----

=== Verbose mode
Expand Down

0 comments on commit e4d0105

Please sign in to comment.