Event log "Category" column RRS feed

  • Question

  • User-257168718 posted
    I am new to the exception handling block, can someone with more experience with it tell me if it allows for setting the Category field of the event log with a string value. Also, if the app block doesn't support it, can someone explain how the process works. I am finding that there is not much doco on setting the category field. From what I can find, when calling the EventLog.WriteEntry method, you can pass in a short for the Category. This short is used as a lookup to a Category entry to pull the string text from when the event log is viewed, but I cannot figure out how to create the lookup. Any help will be greatly appreciated.
    Monday, January 5, 2004 1:26 PM

All replies

  • User-257168718 posted
    I found the answer to my question lies in the Windows Platform SDK. If anyone needs to do the same think, do a search for "EventMessageFile". It is confusing, because what you really need to create is a "CategoryMessageFile", but the process is the same for both.
    Wednesday, January 14, 2004 8:46 PM