• Notification agent

    By Steve Smillie 2 decades ago

    I was testing the Notification process when I found the following:



    I have some code that creates Log Entries by using the LogEvent function. The first parameter (msg) is stored in the "LogMessage" field of the Log Entry document.

    The Notification Profile "Error Text" area appears to only search the "LogErrorMessage" field.

    So when I am unable to setup notifcations based on the text in the "LogMessage" field.



    Should the notification also search the "LogMessage" field for matches to the "Error Text"?

    Or should another item be added as a possible trigger?

    Other thoughts?

    • Hmm, let me think about that one...

      By Julian Robichaux 2 decades ago

      Yeah, right now I think I've only got it searching the error message field, not the entire log message field. I'm pretty sure I set it up that way because the two messages can be different if you use LogErrorEx instead of LogError.



      I'll probably lean toward adding a separate field search option, but let me think about it for a day or two. If the search suddenly looks at two fields when before it was only looking at one, that can break backwards-compatibility (which may not be a big deal). On the other hand, adding another option means there's another option to stare at.



      I've been meaning to update a few bits of the notification process anyway, so I'll add this to the list.



      Thanks! I hope everything else is working for you.


      • Julian
      • Thanks

        By Steve Smillie 2 decades ago

        Julian,

        Thanks for looking into it!



        I am finding this OpenLog to be very useful. Good Work!!!



        I got around my described problem by adding some logic to my code to change the Severity Level to a differnet number when I want to Notify. But it would be nicer to be able to add this kind of notification without code changes.



        Oh and thanks again for your work on the Lotus Notes Web Datepicker, I am still using it and it is working great!

        • Glad it's working for you

          By Julian Robichaux 2 decades ago

          Cool, a repeat customer! ;-)



          You know, the fact that you are able to make your own modifications while you're waiting on me is just one more reason to love open source software.


          • Julian