Domino Code Fragment
Code Name* OpenNotesLog method | Date* 04/28/2024 | Source (or email address if you prefer)* Rlatulippe@romac.com IP address:.3.133.86.172 | |
Description* 1. This script opens AGENTLOG.NSF on the current computer. Each time an action or error is logged, a new document gets created in AGENTLOG.NSF. | Type* Java | Categories* (Misc) |
Implementation: | Required Client: | Server: |
Limitations: | Comments: |
public class opennoteslogagent extends AgentBase
{
public void NotesMain()
{
try
{
Session s = getSession();
AgentContext ac = s.getAgentContext();
Log log = s.createLog("Database log");
log.openNotesLog(null, "agentlog.nsf");
log.logAction("Logging an action");
log.close();
}
catch (Exception e)
{
e.printStackTrace();
}
}
}