First I would go to log4net . SmtpAppender can wait for N exceptions to accumulate before sending an email and avoiding Outlook crashes. And log4net also logs log files that can be stored on network drives, read with cat and grep, etc.
About statistics, you can keep a log of health / performance using the same tools, i.e. create a thread that records CPU usage every minute, etc.
I do not have a specific answer for the first part of the question, since it involves automatic analysis of the journal and coalescence . At the university, we created a tool that is designed to partially implement these things, but does not apply to your scenario (but it is two-way integrated with log4net).
usr-local-ΞΞ¨ΞΞΞΞ©Ξ
source share