• Updating the actual Agent log

    By Rafez Noorullah 2 decades ago

    Have not been able to find whether any of the classes allows an equivalent of the OpenAgentLog method for NotesLog, which actually writes information to the "log" of the Agent. Have I missed it in someplace obvious?



    Using the Agent Log, is and easy way to locate what happened the last time an agent ran, without having to trawl through a log database (by right-hand clicking on agent in designer and then Log), although it does have a 64K limit.

    • Not base functionality, but easy enough for you to add

      By Julian Robichaux 2 decades ago

      The base functionality of the OpenLog classes does not include writing to the Agent log, although that would be easy enough to add as a customization if you wanted. See the MailLogSubclass script library example for an example of using a subclass to provide custom functionality.



      While you're correct that the AgentLog allows you to see what happened without having to "trawl through a log database", it also gets overwritten every time the agent runs. The whole point of the OpenLog database is to write everything to a central place, and store it somewhere.



      But, like I said, it would be easy enough for you to add if you want. That's the great thing about having the code exposed in the database.

      • Drat...caught out again

        By Rafez Noorullah 2 decades ago

        Thought you might say that, and had been toying with the idea of taking this task on, but just wanted to make sure I wasn't being blind, before I started to oil the grey matter.



        I'll post back anything that doesn't red box ;-)