Logging in Lotus Notes Application

I want to add logging capabilities in my Lotus Notes application. Basically I want to be able to log who make the change, when the change is made, and what field(s) is/are changed in a document. What is the best way to do this. I am thinking to also add this at the end of each document so the user knows who make the changes. Is this a good idea?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Use LotusScript. I've done this before years ago, can't remember the method I used exactly, but what springs to mind now is to create a copy of the document when it's put in edit mode and then when the document is saved, compare the copy to see what's changed and make your list.
here is an example of how to implement it http://www.openntf.org/projects/codebin/codebin.nsf/0/71E930683C3401A3C1256F2F00611BAA

Another method is to use the notes versioning. It's in the forms properties, first tab: versioning.
coronoahcoroAuthor Commented:
How can I import the script library? I am in the designer and only have 'New Script Library' button. When I click File, I do not see an import function
OWASP: Avoiding Hacker Tricks

Learn to build secure applications from the mindset of the hacker and avoid being exploited.

coronoahcoroAuthor Commented:
@umeli: have you tried to use the class? I followed the instruction and able to generate the history when a document is created the first time but not any of the changes.

And I do not understand why the code is placed on the PostEvent area. I still cannot make sense how the code is actually working.
coronoahcoroAuthor Commented:
In the end I wrote some codes in the PostOpen and QuerySave to make the comparison and log the changes.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
coronoahcoroAuthor Commented:
Find my own solution
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Lotus IBM

From novice to tech pro — start learning today.