Domino Code Fragment

Code Name*
OpenAgentLog method
Date*
04/29/2024
Source (or email address if you prefer)*
Rlatulippe@romac.com
IP address:.18.217.109.151
Description*
This agent opens the agent log and writes an action message to it.
Type*
Java
Categories*
(Misc)
Implementation:
Required Client:
Server:
Limitations:
Comments:
Files/Graphics attachments (if applicable): Code:
import lotus.notes.*;
import java.util.Vector;


public class openagentlogagent extends AgentBase
{
 public void NotesMain()
 {
   try
   {
     Session s = getSession();
     Log log = s.createLog("Agent Log");
     log.openAgentLog();
     log.logAction("Action one");
     log.close();    
   }
   catch (Exception e)
   {
     e.printStackTrace();
   }
 }
}