Email notification when replication error occurs

Q: Is there a possibility to setup a notification mechanism in the case a replication task failes? I'm testing the NT service ibreplserversvc as the replication server. What happens if the replication target database is not available: how can I get a notification?

I thought about an email message when a task failes. For this one of two possibilities would be necessary:

  1. option to setup email notification in case of failure directly in ibreplicator
  2. option to setup a batch job which is run by ibreplicator in case of failure

Or do you have another suggestion for this?

A: I think that more logical is logging to system log and setup syslog to notify administrator via email. In linux it's easy, in windows I don't know if is it possible.