Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPAUDITLOGGING-60: Make logged format configurable for Date/Calendar/DateTime values #31

Open
robertoschwald opened this issue Mar 25, 2014 · 1 comment

Comments

@robertoschwald
Copy link
Contributor

Original Reporter: smaerkle
Environment: grails 2.3.5
Version: Grails-AuditLogging 0.5.5.3
Migrated From: http://jira.grails.org/browse/GPAUDITLOGGING-60

We use an audited domain object that is manipulated by a webservice.

Logging for Date type columns is ugly, since in our case, oldValue is of Timestamp or Date type (hibernate mapping of a Date type), newValue is an XMLGregorianCalendar (cxf mapping of a Date type).
Since Auditlog uses toString(), the entries differ in format.

Taken the date_created column into account, there are three different date formats involved in a single audit_log row, e.g.:

date_created
2014-03-19 15:04:32.137
new_value
Tue Mar 18 15:04:31 CET 2014
old_value
2014-03-20 00:00:00.0

We'd like to see the String representation for Dates configurable (for example by a SimpleDateFormat format String).

@robertoschwald
Copy link
Contributor Author

roos said:
PR welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant