As you know, we can use the EventLog class to write event logs, but I'm confused about how to write the category name to the event log. Thoug provides a category parameter, for example, one of the WriteEntry types:
public void WriteEntry( string message, EventLogEntryType type, int eventID, short category
)
And he just shows the number in my journal. Why is the category type short and not string? How to display category name in event viewer? Thank you By the way, we will not create a custom CategoryMessageFile.
source share