Log messages from reports promises to event log on Windows.

Use portable LogToSystemLog function to that end.

Fixes Redmine #6315
Merge pull request #1813 from vohi/redmine6315/log_reports_to_event_log

Log messages from reports promises to event log on Windows.