Setting category of EventLog entries

Topics: Logging Application Block
Jan 25, 2007 at 9:44 AM
Is it possible to set the category of EventLog entries generated by the FormattedEventLogTraceListener?

In EntLib v1.0, there was a workaround where you could use the extended properties Hashtable to set this. (Adding a Hashtable entry with a key of 'categoryid' and a value of '4' set the EventLog category to 'Service'.)

This workaround doesn't seem to work in EntLib v2.0. Has it been replaced by a different method, or was it just removed? Setting those same properties in the extended properties Dictionary<string, object> in v2.0 just appends those values to the EventLog entry, and gives the EventLog entry a category of 'None'.