In my Quartz.NET based application, I have a JobListener that audits all jobs executed to an audit table. However, I also want a listener to detect whenever any sort of error occurs, so I can catch this and email an email address that there is an error, and maybe find the specific error (i.e. my program moves files around, so an error could be a path doesn't exist).
How do I listen for failed jobs, and also is it possible to detect whether there is a huge number of errors, and in that case only send a few emails rather than an email for every single error?
Many thanks