APPLICATION DESIGN
To use NotesLog, follow this LotusScript example that tracks the documents an agent is processing by capturing the documents’ subject. The information is recorded in the Agent Log.
Dim agentLog As new NotesLog("Agent log")
Dim collection As NotesDocumentCollection
Dim db As NotesDatabase
Dim s As NotesSession
Dim count As Integer Call agentLog.OpenAgentLog Set s=New NotesSession Set db = s.CurrentDatabase Set collection = db.UnprocessedDocuments Set note = collection.GetFirstDocument count = collection.Count Do While (count >0) Subject = note.Subject Call agentLog.LogAction("Processing:"+Subject(0)) Set note = collection.GetNextDocument(note) count = count-1 Loop Call agentLog.Close
Agent Log limit
The Agent Log can hold only 64KB of information. When the information written to it exceeds this limit, the following message is displayed and the agent stops running:
See Also