• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java Web and Audit  RSS feed

 
Dan plakovitch
Greenhorn
Posts: 3
Firefox Browser MySQL Database Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have web application built with rest  and client side html & bootstrap.
i want to audit all action (in db-big data in my case ) done in the system, something like :
TIMESTAMP,USER NAME,ACTION,DESCRIPTION
should i use some ready module, or just write some method that will write this values to db?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37513
554
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dan,
It's not hard to write your own. It would be a class for auditing that is used by your whole app.
 
Junilu Lacar
Sheriff
Posts: 11494
180
Android Debian Eclipse IDE IntelliJ IDE Java Linux Mac Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are many ways you can do this. Audit logs are a cross-cutting concern and as such, aspects come right to mind.  The top items found when you search for aspect-oriented programming auditing Java will give you lots of things you can look into, including how you'd do it with Spring.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!