Application audit implementation

Posts   
 
    
ccsdev
User
Posts: 7
Joined: 13-Dec-2006
# Posted on: 02-Aug-2007 18:11:39   

We are currently using LLBLGenPro v2.0 Jun/18/2007 release, Adapter Two Class Model

We need to audit even if someone viewed a customer record plus other typical audits for Insert/Update/Delete.

We have a separate AppAuditLog table with these fields:

AuditLogID (Identity column), UserID, UserName, CustomerID, CustomerName, AppModuleName, RecordID, ActionTaken, ActionDate

E.g., User viewed customer record 1234

Audit info would be:

AuditLogID: 1 UserID: 101 UserName: Test User1 CustomerID: 555 CustomerName: Test Customer AppModuleName: CustomerChart RecordID: 1234 ActionTaken: VIEW CHART ActionDate: 1/12/2006

Other examples for ActionTaken would be "ACCEPTED DEPOSIT", "CLOSED ACCOUNT", "INCRESED CREDIT LIMIT", etc.

Q1: What is the recommeded way to implement this requirement?

2.5 Beta talks about Auditing support Auditing support. You can now define auditors which record audit information during the entity's life cycle and can provide audit entity objects (of the type you provide) to the framework to be persisted automatically when the audited entity is part of a transaction with the database. This gives great flexibility what to audit and when and frees the developer from the hassle to persist the audit entities at some point in time.

Q2: Assuming we can wait, are we better off waiting for 2.5 release and use the audting support provided in v2.5?

Thanks in advance!

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39910
Joined: 17-Aug-2003
# Posted on: 02-Aug-2007 23:28:29   

I'd check out v2.5's auditing features as it's transparent so you don't have to babysit the auditing code. The build released today has updated documentation for auditing so you should be able to get started with that I think.

Frans Bouma | Lead developer LLBLGen Pro