Examples: close method (Log - Java)

This agent opens and then closes a mail log. When the close method is called, the log is mailed.

import lotus.domino.*;
import java.util.Vector;
public class JavaAgent extends AgentBase {
  public void NotesMain() {
    try {
      Session session = getSession();
      AgentContext agentContext = session.getAgentContext();
      // (Your code goes here) 
      Log log = session.createLog("Checkup Agent");
      Vector v = new Vector();
      log.openMailLog(v, "Here's your log");
      // log some errors and actions
    } catch(Exception e) {