Domino Code Fragment
| Code Name* lotus.notes.Log class | Date* 10/26/2025 | Source (or email address if you prefer)* [email protected] IP address:.172.69.214.234 | |
| Description* 1. This agent opens a mail log and sends it to the current user when the log closes. | Type* Java | Categories* (Misc) | |
| Implementation: | Required Client: | Server: |
| Limitations: | Comments: | |
public class log1agent extends AgentBase
{
public void NotesMain()
{
try
{
Session s = getSession();
Log log = s.createLog("Checkup Agent");
Vector v = new Vector();
v.addElement(s.getUserName());
log.openMailLog(v, "Log for checkup agent");
log.close();
}
catch (Exception e)
{
e.printStackTrace();
}
}
}