Domino Code Fragment
| Code Name* OpenFileLog method | Date* 06/09/2026 | Source (or email address if you prefer)* [email protected] IP address:.104.23.243.66 | |
| Description* 1. This agent opens a file called append.TXT in the Notes directory. Each action and error gets appended to the file on a separate line without writing over the existing contents of the file. | Type* Java | Categories* (Misc) | |
| Implementation: | Required Client: | Server: |
| Limitations: | Comments: | |
public class openfilelog1agent extends AgentBase
{
public void NotesMain()
{
try
{
Session s = getSession();
Log log = s.createLog("Append to file");
log.openFileLog("append.log");
log.logAction("Logged an action");
}
catch (Exception e)
{
e.printStackTrace();
}
}
}