You can configure the Nathean Schedule Service and Nathean Analytics configuration files to email on specific events.

You do this list adding a listener with specific filters.

The following will email users in the event of a critical error.

Add the following lines.

 <listeners>
		<add name="*Critical Email Trace Listener*" type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.EmailTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.414.0, Culture=neutral, 
PublicKeyToken=31bf3856ad364e35" listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.EmailTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" toAddress="emailusername@domain.com" fromAddress="emailusername@domain.com" subjectLineStarter="Critical Logix Schedule Error" subjectLineEnder="" smtpServer="servername" userName="emailusername@domain.com" password="mypassword" formatter="Text Formatter" authenticationMode="None" filter="Critical"* />
    </listeners>
    <categorySources>
         <add switchValue="All" name="General">
			<listeners>
				<add name="Critical Email Trace Listener" />
			</listeners>
	</add>
    </categorySources>

For more informatiopn on this technique see the following articles.

Developer Guide

https://www.c-sharpcorner.com/article/logging-block-in-microsoft-enterprise-library-6-0/

Revision: 15
Last modified: Sep 23, 2019

Feedback

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.

Post your comment on this topic.

Post Comment