Examples: Making a Domino® log

This example appends the date and the message "Agent 4 invoked" to AGENT4.LOG in the local Domino® data directory every time the agent runs.

Sub Initialize
  Dim agentLog As New NotesLog("Agent 4 log")
  Call agentLog.OpenFileLog("AGENT4.LOG")
  Call agentLog.LogAction("Agent 4 invoked")
End Sub