Interesting problem Create custom Log Database

I Have to make 1 custom log database. The purpose of this Database is whenever some document will be modified/created in other 5 Databases, a document will be created in this Log database with the link of that modified Document.

Now I thought i will make agents in all those 5 DBs which is of type “Run After documet are created/Modified”. Now the agent is running fine whenever the documents are modified/created on those 5 DBs. But the problem is how I will get handle of that Modified document so that I can put the link in the rich text field in the document of the Log DB. I have used DocumentContext,unprocessedDocuments. But in vane.

Could you give your Idea?

Subject: Interesting problem Create custom Log Database

You could use OpenLog

http://www.openntf.org/projects/pmt.nsf/ProjectLookup/OpenLog

You create a central log database and then copy the OpenLogFunctions script library within your 5 dbs. Then use the LogEvent function in all of your 5 dbs.

JYR

Subject: RE: Interesting problem Create custom Log Database

Hi Jean,

Where I will use that LogEvent function? In the query save event of all forms of all those Dbs?

Or you are talking about to use the function in the Agent which is of type (Run whe documents are created or modified). If that is the case then in the function “LogEvent” 1 notesdocument object is required.But from the starting itself my main problem was getting the handle of the document only.