Audit Logs

7 views
Skip to first unread message

Jeff Scadden

unread,
Feb 10, 2011, 3:38:22 PM2/10/11
to Utah Groovy & Grails User Group
What are you guys using for Auditing?
- Changes to Domain objects

Eric Berry

unread,
Feb 17, 2011, 1:06:39 PM2/17/11
to ug...@googlegroups.com
I'm not sure what you mean by this.

Jeff Scadden

unread,
Feb 23, 2011, 11:28:10 AM2/23/11
to Utah Groovy & Grails User Group
I was needing a solution to write to an audit log (Audit Table).
Didn't want to have audit calls being scattered around in services for
when a domain object is being updated or created. I wanted to use the
domain event afterInsert and afterUpdate but didn't see a way to get
the previous values when updating.

Ended up going with the plugin. http://www.grails.org/plugin/audit-logging.
It does the job, by providing another method onChange(oldMap, newMap).
Reply all
Reply to author
Forward
0 new messages