(Agent process, called by NotesAgent. RunOnServer method) 'Agent Name: "(LogCall) | LogCall" Sub Initialize Dim session As New NotesSession Dim logEvent As NotesLog Set logEvent = session.CreateLog("MyEventLog") 'These lines can only called when run on the server - will cause error if run under client Call logEvent.LogEvent("MiscAgentTest", "Misc", EV_MISC, SEV_FAILURE) Call logEvent.LogEvent("Agent Log Event Test 2", "Misc", EV_MISC, SEV_FATAL) Call logEvent.LogEvent("Agent Log Event Test 3", "Misc", EV_MISC, SEV_NORMAL) Call logEvent.LogEvent("Agent Log Event Test 4", "Misc", EV_MISC, SEV_WARNING1) Call logEvent.LogEvent("MiscAgentTest", "Misc", EV_MISC, SEV_WARNING2) Call logEvent.Close End Sub
When the agent is run, the server console will display:
Agent '(LogCall) | LogCall' error: Notes error: No such queue (MiscAgentTest)
I've searched the LN KBase, this site, Notes.Net and Google. I can not find anything relative to implementing this method.
See the document in your designer help file called "Making a Domino log". Check the examples of all four log types to see how to use the features. To use the log database methods, the database has to exist or be created before you can log to it.
OpenNTF.org also has a more advanced logging application if you need more.
Do you have comments on this Ask the Expert question and response? Let us know.
Related Q&A from Brian Mahoney
Find out what types of calculations can be computed for a column in a Lotus Notes view and the best way to go about it with this expert response.continue reading
Find out why you can't use Formula language to include a doclink to a specific Lotus Notes view or database and need to use LotusScript instead.continue reading
Discover the reasons behind a Notes/Domino admistrator having trouble with disabled options in the "customize this view" section of his Lotus Notes ...continue reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.