title: How to write event log category
body: <p>As we know, we can use the class EventLog to write event logs, but I am confused about how to write category name in my event log. Thoug it provides the category parameter, for example, one of the type of WriteEntry is:  </p>
  
  <pre><code>public void WriteEntry(
  string message,
  EventLogEntryType type,
  int eventID,
  short category
  </code></pre>
  
  <p>)<br>
  And it just shows number in my log. Why the type of category is short, not string? How to display the category name in the Event Viewer? Thanks! By the way, we will not create the custom CategoryMessageFile.</p>