Domino Code Fragment
Code Name* OpenFileLog method | Date* 04/28/2024 | Source (or email address if you prefer)* Rlatulippe@romac.com IP address:.3.145.166.7 | |
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();
}
}
}