Domino Code Fragment
| Code Name* OpenNotesLog method | Date* 06/09/2026 | Source (or email address if you prefer)* [email protected] IP address:.104.23.197.110 | |
| 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();
}
}
}