title: Writing to Windows Event Log using win32evtlog from pywin32 library
body: <p>I have a simple python script that will be running on a windows server, I'd like to log specific events throughout the script to the windows event log. Does anyone have a simple and precise example of writing to the windows event log so I can view the event from the event viewer. I've read through the docs for the pywin32 library and I can't find any clear examples. I've tried building an event using: </p>
  
  <pre><code>win32evtlogutil.ReportEvent(ApplicationName, EventID, EventCategory,
                  EventType, Inserts, Data, SID)
  </code></pre>
  
  <p>I've had no success, could someone explain the ReportEvent a bit more in depth?</p>